R: String representation of an event sequence object

str.eseq {TraMineR} | R Documentation

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

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

### 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.2-4 Index]