我正在使用 R 中的arules
andarulesViz
包对我的数据实现一组关联规则。它工作得很好,直到几天前。但是现在,每当我加载使用此包的 R 文件时,我都会收到以下错误。
Loading required package: arules
Loading required package: Matrix
Attaching package: ‘arules’
The following objects are masked from ‘package:base’:
%in%, write
Error in length(obj) : Method length not implemented for class rules
In addition: Warning message:
package ‘arules’ was built under R version 3.1.3
Error in length(obj) : Method length not implemented for class rules
Error in length(obj) : Method length not implemented for class rules
Error in length(obj) : Method length not implemented for class rules
如果我使用该plot()
功能,arulesViz
我将面临以下错误:
Error in seq_along(x) : Method length not implemented for class rules
所以试图卸载软件包并重新安装它。它只在重新安装后第一次工作,当我重新安装后第一次使用时,它也抛出了以下错误。
Loading required package: arules
Loading required package: Matrix
Attaching package: ‘arules’
The following objects are masked from ‘package:base’:
%in%, write
但是,一旦我保存了文件并将其加载回来,旧的错误消息就会再次重复。我在 Google 中搜索过,但没有人发布过任何接近此类错误的内容。感谢您的帮助。谢谢。