seqcomp {TraMineR} | R Documentation |
Compare two sequences and return TRUE if they are equal and FALSE otherwise
seqcomp(x, y)
x |
a sequence object containing one sequence (typically a subscript of a main sequence object, see seqdef ) |
y |
a sequence object containing one sequence (typically a subscript of a main sequence object, see seqdef ) |
TRUE if sequences are identical, FALSE otherwise
data(mvad) mvad.shortlab <- c("EM", "FE", "HE", "JL", "SC", "TR") mvad.seq <- seqdef(mvad, states=mvad.shortlab, 15:86) ## Comparing sequences 1 and 2 in mvad.seq seqcomp(mvad.seq[1,],mvad.seq[2,]) ## Comparing sequences 176 and 211 in mvad.seq seqcomp(mvad.seq[176,],mvad.seq[211,])