support-methods {arulesSequences}R Documentation

Support Counting for Sequences

Description

Compute the relative or absolute support of an arbitrary collection of sequences among a set of transactions with additional sequence and temporal information.

Usage

## S4 method for signature 'sequences':
support(x, transactions, type= c("relative", "absolute"),
           control = NULL)

Arguments

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.

Value

Returns a numeric vector the elements of which correspond with the elements of x.

Note

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.

Author(s)

Christian Buchta

See Also

Class sequences, method ruleInduction, function cspade, read_baskets.

Examples

## continue example
example(cspade)

## recompute support
s <- support(s2, zaki, control = list(verbose = TRUE))
cbind(as(s2, "data.frame"), upper = s)

[Package arulesSequences version 0.1-4 Index]