[Solved] Is is.subset not working in R?


apriori returns rules object, not a vector:

data("Adult")
## Mine association rules.
rules <- apriori(Adult, 
    parameter = list(supp = 0.5, conf = 0.9, target = "rules"))
class(rules)
# [1] "rules"

if you want to compare lists of rules you will need to transform this object to a data.frame, e.g.:

rules.df <- as(rules, "data.frame")
is.subset(rules.df$rules, rules.df$rules)

4

solved Is is.subset not working in R?