Writing rules generated by Apriori

前端 未结 3 836
时光取名叫无心
时光取名叫无心 2021-02-05 11:47

I\'m working with some large transactions data. I\'ve been using read.transactions and apriori (parts of the arules package) to mine for frequent item pairings.

My probl

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 12:34

    I found this post when struggling with writing my rules to excel. My solution is:

    library(writexl)
    
    write_xlsx(as(rules_1, "data.frame"), "rules_1.xlsx")
    

    It is much easier to read and report when it is in excel.

提交回复
热议问题