
support(x, transactions, ...)
## S3 method for class 'itemMatrix':
support(x, transactions, type= c("relative", "absolute"))
## S3 method for class 'associations':
support(x, transactions, type= c("relative", "absolute"))
"relative"
support or "absolute"
support (counts) are returned for the itemsets in x
.
(default: "relative"
)x
containing
the support values for the sets in x
.itemMatrix-class
,
associations-class
,
transactions-class
data("Income")
### find and some frequent itemsets
itemsets <- eclat(Income)[1:5]
### inspect the support returned by eclat
inspect(itemsets)
### count support in the database
support(items(itemsets), Income)
Run the code above in your browser using DataLab