library(arules); #加载arules程序包
proCount<-3;
#proCount<-192357;
maxlength<-3;
frequentsets=eclat(trans,parameter=list(support=1/proCount,maxlen=maxlength)); #求频繁项集 support=1/事务数(产品数) maxlen:频繁项集最大数(候选群组最大成员数)
rs<-inspect(frequentsets); #察看求得的频繁项集
inspect(sort(frequentsets,by="support")); #根据支持度进行排序
在最后这一步 求得频繁项集之后,如何把频繁项集输出到文件中?我需要使用求得的频繁项集做其他的工作。