support-methods {arulesSequences} | R Documentation |
Compute the relative or absolute support of an arbitrary collection of sequences among a set of transactions with additional sequence and temporal information.
## S4 method for signature 'sequences': support(x, transactions, type= c("relative", "absolute"), control = NULL)
x |
an object. |
transactions |
an object of class
transactions . |
type |
a character value specifying the scale of support (relative or absolute). |
control |
a named list with logical component verbose
specifying if progress and runtime information should be displayed. |
Returns a numeric
vector the elements of which correspond
with the elements of x
.
Currently, only prefix-tree counting is implemented. This approach
uses the ordering information of the elements of a sequence only.
Therefore, the counts might be higher than those computed by
cspade
.
Christian Buchta
Class
sequences
,
method
ruleInduction
,
function
cspade
,
read_baskets
.
## continue example example(cspade) ## recompute support s <- support(s2, zaki, control = list(verbose = TRUE)) cbind(as(s2, "data.frame"), upper = s)