sequences-class {arulesSequences}R Documentation

Class "sequences" — Collections of Sequences

Description

Represents a collection of sequences and the associated quality measures.

Objects from the Class

Most frequently, objects are created by a sequence mining algorithm such as cSPADE as the return value.

Objects can also be created by calls of the form new("sequences", ...).

Slots

elements:

an object of class itemsets containing a sparse representation of the unique elements of a sequence.

data:

an object of class sgCMatrix containing a sparse representation of ordered lists (collections of) indexes into the unique elements.

sequenceInfo:

a data frame which may contain additional information on a sequence.

quality:

a data.frame containing the quality measures of a sequence.

tidLists:

an object of class tidLists mapping supporting sequences, or NULL.

Extends

Class "associations", directly.

Methods

coerce

signature(from = "sequences", to = "list")

coerce

signature(from = "sequences", to = "data.frame")

coerce

signature(from = "list", to = "sequences")

%in%

signature(x = "sequences", table = "character")

%ain%

signature(x = "sequences", table = "character")

%pin%

signature(x = "sequences", table = "character")

%ein%

signature(x = "sequences", table = "character")

c

signature(x = "sequences")

dim

signature(x = "sequences")

duplicated

signature(x = "sequences")

labels

signature(object = "sequences")

length

signature(x = "sequences")

LIST

signature(x = "sequences")

match

signature(x = "sequences")

nitems

signature(x = "sequences")

sequenceInfo

signature(object = "sequences")

sequenceInfo<-

signature(object = "sequences")

inspect

signature(x = "sequences")

is.closed

signature(x = "sequences"); returns a logical vector indicating if a sequence has no proper superset in x which has the same support.

is.maximal

signature(x = "sequences"); returns a logical vector indicating if a sequence is not a subsequence of any other sequence in x.

is.subset

signature(x = "sequences")

is.superset

signature(x = "sequences")

itemFrequency

signature(x = "sequences")

itemInfo

signature(object = "sequences")

itemInfo<-

signature(object = "sequences")

itemLabels

signature(object = "sequences")

itemLabels<-

signature(object = "sequences")

itemTable

signature(x = "sequences")

itemsets

signature(x = "sequences"); returns the reference set of distinct itemsets (elements).

ruleInduction

signature(x = "sequences")

show

signature(object = "sequences")

size

signature(x = "sequences")

subset

signature(x = "sequences")

summary

signature(object = "sequences")

support

signature(x = "sequences")

unique

signature(x = "sequences")

Note

Coercion from an object of class transactions with temporal information to an object of class sequences is not provided as this information would be lost. Use class timedsequences instead.

Currently, a general method for concatenation of sequences similar to cbind, is not provided.

Author(s)

Christian Buchta

See Also

Class sgCMatrix, timedsequences, itemsets, associations, method ruleInduction, FIXME, function cspade, data zaki.

Examples

## 3 example sequences
x <- list("01" = list(c("A","B"), "C"), 
          "02" = list("C"), 
	  "03" = list("B", "B"))

## coerce
s <- as(x, "sequences")
as(s, "data.frame")

## get reference set
as(itemsets(s), "data.frame")

[Package arulesSequences version 0.2-25 Index]