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
: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
.
Class "associations"
, directly.
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")
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")
Run the code above in your browser using DataLab