| seqecreate {TraMineR} | R Documentation |
Create event sequence objects from the given input.
seqecreate(id, timestamp, event, endEvent=NULL)
id |
The sequence id as an integer. |
timestamp |
Dates of events as a double. |
event |
The event that appeared at the specified date. |
endEvent |
If specified this event will be considered as a flag for the end of observation time (total length of event sequences). |
The input format consist in three list of the same size idpers, timestamp and one event. Several events can appear at the same time.
This correspond to the TSE format described in seqformat.
The result can then be used in other methods, such as seqefsub or seqeapplysub.
seqformat for TSE format information
seqefsub for searching frequent subsequences.
seqeapplysub for counting subsequences and more.
seqelength about length (observation time) of event sequences.
## Loading data
data(actcal.tse)
## Creating sequences
actcal.seqe <- seqecreate(actcal.tse$id, actcal.tse$time,
actcal.tse$event)
##printing sequences
actcal.seqe[1:10]