Learn R Programming

TraMineR (version 2.2-10)

str.eseq: String representation of an event sequence object

Description

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

Arguments

Author

Matthias Studer (with Gilbert Ritschard for the help page)

Details

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

See Also

seqecreate for a full example

Examples

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

Run the code above in your browser using DataLab