Learn R Programming

arules (version 0.3-1)

superset: Find Super and Subsets

Description

Provides the generic functions and the S4 methods is.subset and is.superset for finding super or subsets in associations and itemMatrix objects.

Usage

is.subset(set, el, proper = FALSE)
is.superset(set, el, proper = FALSE)

Arguments

el, set
associations or itemMatrix objects.
proper
"logical"; all or just proper super or subsets.

Value

  • returns a logical matrix with length(el) rows and length(set) columns. Each logical row vector represents which elements in set are supersets (subsets) of the corresponding element in el

Details

looks for supersets (subsets) of el in set.

See Also

associations-class, itemMatrix-class

Examples

Run this code
data("Adult")
set <- eclat(Adult, parameter = list(supp = 0.8))

### find the supersets of each itemset in set
is.superset(set, set)

Run the code above in your browser using DataLab