TraMineR (version 2.2-0.1)

str.eseq: String representation of an event sequence object

Description

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)

Arguments

Details

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).

See Also

seqecreate for a full example

Examples

Run this code
# NOT RUN {
data(actcal.tse)
actcal.eseq <- seqecreate(actcal.tse)
head(as.character(actcal.eseq))
# }

Run the code above in your browser using DataLab