在 RStudio 中使用附加的数据集,我收到以下错误消息:
Error in readLines(file, encoding = encoding) :
(converted from warning) line 1 appears to contain an embedded nul
在以下代码之后:
txn = read.transactions(file="ItemList22.xlsx", rm.duplicates=TRUE, format="basket",sep=",",cols=1,quote = "\"'", skip = 0,encoding="unknown");
我正在尝试使用“arules”包为 Apriori 分析设置数据。根据其他 StackOverflow 帖子和 CRAN 文档,我尝试向上述代码添加编码选项......但它们似乎不起作用。
我究竟做错了什么?