String representation of an event sequence object
Return a string representation of an event sequence object. Works on event sequences as well as on subsequences.
This is an overriding of the usual corresponding functions (str and as.character)
The string have the following form:
time-(e1,e2,...)-elapsedtime-(e2,...)...
Where time is the time elapsed from previous set of events and (e1,e2,...) a non empty list of simultaneous events.
The function also works on list.
Use str.seqelist to get a single string for a whole list, and as.character.seqelist to get a vector of strings.
str.eseq and as.character.eseq have mainly an internal purpose (they are called 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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.