I converted some rules to a dataframe with the DATAFRAME() fx from arules package. I deleted some rules and I want to convert back to class rules. I looked for documentation but I cannot find anything to do this.
I already tried to coerce:
as(df_br_two, "rules") Error in as(df_br_two, "rules") : no method or default for coercing “data.frame” to “rules”
I need to convert back to rules so I can plot the rules with arulesViz. Can anyone help me?