str.eseq {TraMineR}R Documentation

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)

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

Author(s)

Matthias Studer (with Gilbert Ritschard for the help page)

See Also

seqecreate for a full example

Examples

data(actcal.tse)
actcal.eseq <- seqecreate(actcal.tse)
head(as.character(actcal.eseq))

[Package TraMineR version 2.3-2 Index]