| sequences-class {arulesSequences} | R Documentation |
Represents a collection of sequences and the associated quality measures.
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", ...).
elements:itemsets
containing a sparse representation of the unique elements of a
sequence.data:sgCMatrix
containing a sparse representation of ordered lists
(collections of) indexes into the unique elements.sequenceInfo:quality:
Class "associations", directly.
coercesignature(from = "sequences", to = "list")coercesignature(from = "sequences", to = "data.frame")coercesignature(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")csignature(x = "sequences")dimsignature(x = "sequences")duplicatedsignature(x = "sequences")labelssignature(object = "sequences")lengthsignature(x = "sequences")LISTsignature(x = "sequences")matchsignature(x = "sequences")nitemssignature(x = "sequences")sequenceInfosignature(object = "sequences")sequenceInfo<-signature(object = "sequences")inspectsignature(x = "sequences")is.maximalsignature(x = "sequences");
returns a logical vector indicating if a sequence is not a
subsequence of any other sequence in x.is.subsetsignature(x = "sequences")is.supersetsignature(x = "sequences")itemFrequencysignature(x = "sequences")itemInfosignature(object = "sequences")itemInfo<-signature(object = "sequences")itemLabelssignature(object = "sequences")itemLabels<-signature(object = "sequences")itemTablesignature(x = "sequences")itemsetssignature(x = "sequences");
returns the reference set of distinct
itemsets (elements).ruleInductionsignature(x = "sequences")showsignature(object = "sequences")sizesignature(x = "sequences")subsetsignature(x = "sequences")summarysignature(object = "sequences")supportsignature(x = "sequences")uniquesignature(x = "sequences")
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.
Christian Buchta
Class
sgCMatrix,
timedsequences,
itemsets,
associations,
method
ruleInduction,
FIXME,
function
cspade,
data
zaki.
## 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")