| coverage {arules} | R Documentation |
Provides the generic function and the needed S4 method to calculate the coverage (support of the left-hand-side) of rules.
coverage(x)
x |
the set of rules. |
Coverage is calculated from the rules quality measures (support and confidence) stored in the quality slot.
A numeric vector of the same length as x containing
the coverage values for the sets in x.
data("Income")
### find and some rules
rules <- apriori(Income)[1:5]
### calculate coverage
quality(rules) <- cbind(quality(rules), coverage = coverage(rules))
inspect(rules)