powered by
Returns the modal state of a variable, e.g., the modal state in a sequence.
rowmode(v, except = NULL)
The modal value
Gilbert Ritschard
A numerical or factor variable.
Vector of values that should be ignored; e.g., set except="*" to ignore missing states with default coding.
except="*"
The function tabulates the variable and returns the most frequent value.
table.
table
data(actcal) actcal.seq <- seqdef(actcal[1:10,13:24]) actcal.mod <- apply(as.matrix(actcal.seq), 1, rowmode) head(actcal.mod)
Run the code above in your browser using DataLab