seqdss {TraMineR} | R Documentation |
Extract distinct states sequence from a sequence object. Returns a sequence object containing the distinct states sequences, ie the durations are not taken into account. The DSS contained in 'D-D-D-D-A-A-A-A-A-A-A-D' is 'D-A-D'. Durations can be extracted with the 'seqdur' function.
seqdss(seqdata)
seqdata |
a sequence object as defined by the seqdef function. |
a sequence object containing the distinct state sequence (DSS) for each sequence in the object given as argument.
## Creating a sequence object with the columns 13 to 24 ## in the 'actcal' example data set data(actcal) actcal.seq <- seqdef(actcal,13:24) ## Retrieving the DSS actcal.dss <- seqdss(actcal.seq) ## Displaying the DSS for the first 10 sequences actcal.dss[1:10,]