str.eseq | R Documentation |
Methods to get a string representation of an event sequence or event subsequence object.
These are the generic str
and as.character
methods for objects of class eseq
(single event sequence) and seqelist
(list of event sequences).
String representations have the following form:
time-(e1,e2,...)-elapsedtime-(e3,...)...
where time
is the time elapsed from start to the first set of simultaneous events (e1,e2,...)
and elapsedtime
the time between two consecutive sets of simultaneous events. Time is only displayed when events are time stamped.
Use str
(str.seqelist
) to get a single string for a whole list, and as.charcater
(as.character.seqelist
) to get a vector of strings.
str.eseq
and as.character.eseq
have mainly an internal purpose (invoked by print methods for example).
Matthias Studer (with Gilbert Ritschard for the help page)
seqecreate
for a full example
data(actcal.tse)
actcal.eseq <- seqecreate(actcal.tse)
head(as.character(actcal.eseq))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.