Learn R Programming

TraMineR (version 1.1)

seqmpos: Number of matching positions between two sequences.

Description

Returns the number of common elements, ie same states appearing at the same position in the two sequences.

Usage

seqmpos(iseq, jseq)

Arguments

iseq
a sequence from a sequence object or a vector of states.
jseq
a sequence from a sequence object or a vector of states.

See Also

.

Examples

Run this code
data(famform)
famform.seq <- seqdef(famform)

seqmpos(famform.seq[1,],famform.seq[2,])
seqmpos(famform.seq[2,],famform.seq[4,])

Run the code above in your browser using DataLab