我从文件中提取了这些数据:
forests<-read.table("~/Desktop/f.txt", header = FALSE, sep = " ", fill = TRUE)
library(arules) //after installing the package
键入
时出错 forests<- apriori(forests, parameter = list(support=0.3))
asMethod(object)中的错误:列1,2,3,4,5,6,7,8,9, 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26, 27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43, 44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60, 61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77, 78,79,80,81,82,83,84,85不合逻辑或不重要。谨慎化 第一列。
我试过了discritize(forests)
。它仍然无效。
itemFrequencyPlot(forests)
也会出错,说无法找到继承的方法。
我是否错误地导入了数据?