str.eseq: String representation of an event sequence object

View source: R/seqe.R

str.eseqR Documentation

String representation of an event sequence object


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)

See Also

seqecreate for a full example


actcal.eseq <- seqecreate(actcal.tse)

TraMineR documentation built on May 29, 2024, 5 a.m.