## Creating a sequence object from columns 13 to 24
## in the 'actcal' example data set
## Here we retain the first 10 sequences only.
data(actcal)
actcal.seq <- seqdef(actcal[1:10,13:24])
## Retrieving the spell durations
actcal.dur <- seqdur(actcal.seq)
## Displaying the durations for the first 10 sequences
actcal.dur
Run the code above in your browser using DataLab