powered by
Returns the position in the sequences of end of first spell in a given state
seqfposend(seqdata, state, with.missing=FALSE, lead=0, from.seq.start=TRUE)
Vector of integers giving position of end of spell in the sequences.
State sequence object of class stslist as produced by seqdef.
stslist
seqdef
Element of the alphabet of seqdata.
seqdata
Logical. Should non-void missing values be considered as regular states? See seqdss and seqdur.
seqdss
seqdur
Integer. Value to be added to the end position.
Logical. Should position be computed from the start of the sequence? Default is TRUE. If FALSE, position is computed from the start of the spell.
TRUE
FALSE
Gilbert Ritschard
seqfpos
## End of spell in further education (FE) in first 10 mvad sequences data(mvad) m.seq <- seqdef(mvad[1:10,17:86]) seqfposend(m.seq, state="FE")
Run the code above in your browser using DataLab