Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

str.seqe

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

TraMineR

Trajectory Miner: a Toolbox for Exploring and Rendering Sequences

v2.2-1
GPL (>= 2)
Authors
Alexis Gabadinho [aut, cph], Matthias Studer [aut, cph] (<https://orcid.org/0000-0002-6269-1412>), Nicolas M"{u}ller [aut], Reto B"{u}rgin [aut], Pierre-Alexandre Fonta [aut], Gilbert Ritschard [aut, cre, cph] (<https://orcid.org/0000-0001-7776-0903>)
Initial release
2020-10-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.