superset {arules}R Documentation

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.

Details

looks for supersets (subsets) of el in set.

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

See Also

associations-class, itemMatrix-class

Examples

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

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

[Package arules version 0.3-1 Index]