dimanche 8 mars 2015

Input external rules to arulesViz


Vote count:

0




I have an excel file of rules: a column for Antecedents, another for Consequents, other for Support, etc


I'm trying to create a "rules" object to plot them using arulesViz.


http://ift.tt/1KFAt9d



new("rules", ...)


I'm trying to create the Slots



lhs:Object of class itemMatrix; the left-hand-sides of the rules (antecedents)
rhs:Object of class itemMatrix; the right-hand-sides of the rules (consequents)
quality:a data.frame


To create the itemMatrix I need to go back to the sparse matrix,but I think that won't work, Is there some way to "import" the rules to arulesViz?


Excel file:



Antec Conseq Supp Conf
MMMMAAA MMAAAA 0.061945 0.5
MMM,MA MMAAAA 0.071944 0.6
MMMMAAA MMAAA 0.053948 0.5
MMM,MA MMAAA 0.054948 0.7
AAAAAA AAAA 0.090909 0.5


asked 1 min ago







Input external rules to arulesViz

Aucun commentaire:

Enregistrer un commentaire