timedsequences-class | R Documentation |
Represents a collection of (observed) sequences and the associated timing information.
Typically, objects are created by coercion from an object of class
transactions
.
Objects can also be created by calls of the form
new("timedsequences", ...)
.
time
:an object of class
ngCMatrix"
containing a sparse
representation of the event times of the elements of the sequences.
note that the storage layout is the same as for slot data
.
timeInfo
:a data frame containing the set of time
identifiers (column eventID
) and possibly distinct labels.
elements
:inherited from class sequences
.
data
:inherited from class sequences
.
sequenceInfo
:inherited from class sequences
.
quality
:inherited from class sequences
,
usually empty.
Class "sequences"
, directly.
Class "associations"
, by class
"sequences", distance 2.
coerce
signature(from = "transactions", to = "timedsequences")
coerce
signature(from = "timedsequences", to = "transactions")
c
signature(x = "timedsequences")
dim
signature(x = "timedsequences")
labels
signature(object = "timedsequences")
LIST
signature(x = "timedsequences")
inspect
signature(x = "timedsequences")
show
signature(object = "timedsequences")
summary
signature(object = "timedsequences")
timeFrequency
signature(x = "timedsequences")
timeInfo<-
signature(object = "timedsequences")
timeInfo
signature(object = "timedsequences")
timesets
signature(object = "timedsequences")
times
signature(x = "timedsequences")
timesets
signature(x = "timedsequences")
;
returns a collection of sequences of event times as an object of
class itemMatrix
.
timeTable
signature(x = "timedsequences")
The temporal information is taken from components sequenceID
and eventID
of transactionInfo. It may be either
on an ordinal or metric scale. The former is always assumed if column
eventID
is a factor.
Note that a sequence must not contain two or more events with the
same eventID
.
Coercion from an object of class sequences
is
not provided as this class does not contain timing information.
Christian Buchta
Class
itemMatrix
,
transactions
,
sequences
.
## use example data
data(zaki)
## coerce
z <- as(zaki, "timedsequences")
z
## get time sequences
summary(timesets(z))
## coerce back
as(z, "transactions")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.