R语言中,显示错误:没有"read.transactions"这个函数

> click_detail =read.transactions(data.buying,format="basket",sep=",",cols=c(2))
错误: 没有"read.transactions"这个函数
> read.transactions(file, format =c("basket", "single"), sep = NULL,
+
+ cols = NULL, rm.duplicates =FALSE, encoding = "unknown")
错误: 没有"read.transactions"这个函数
>

首先,你要加载程序包 library(arules)

click_detail <-read.transactions(data.buying,format="basket",sep=",",cols=c(2))

click_detail后面不是等号而是<-
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答