Learn R Programming

TraMineR (version 1.6-2)

str.seqe: String representation of sequence object

Description

Return a string representation of an event sequence object. This work on sequence or subsequences as well. This is an overiding of the usual corresponding function (str and as.character)

Arguments

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. This function also work on list. You will mainly used str.seqelist wich a return a single string for a whole list, and as.character.seqelist which return a vector of string. str.seqe and as.character.seqe have mainly an internal purpose (there are called by print and more).

See Also

seqecreate for a full example

Examples

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

Run the code above in your browser using DataLab