seqmpos {TraMineR} | R Documentation |
Returns the number of common elements, ie same states appearing at the same position in the two sequences.
seqmpos(iseq, jseq)
iseq |
a sequence from a sequence object or a vector of states. |
jseq |
a sequence from a sequence object or a vector of states. |
.
data(famform) famform.seq <- seqdef(famform) seqmpos(famform.seq[1,],famform.seq[2,]) seqmpos(famform.seq[2,],famform.seq[4,])