seqecreate {TraMineR}R Documentation

Create event sequence objects.

Description

Create event sequence objects from the given input.

Usage

  seqecreate(id, timestamp, event, endEvent=NULL)

Arguments

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

Details

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.

See Also

seqformat for TSE format information seqefsub for searching frequent subsequences. seqeapplysub for counting subsequences and more. seqelength about length (observation time) of event sequences.

Examples

## 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]

[Package TraMineR version 1.0 Index]