seqfposend | R Documentation |
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)
seqdata |
State sequence object of class |
state |
Element of the alphabet of |
with.missing |
Logical. Should non-void missing values be considered as regular states? See |
lead |
Integer. Value to be added to the end position. |
from.seq.start |
Logical. Should position be computed from the start of the sequence? Default is |
Vector of integers giving position of end of spell in the sequences.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.