powered by
This is a wrapper function to codeGap, which accepts a data.frame of characters values including ranges (1-10).
codeMatrix(dat, n = NULL, max.states = NULL, poly.sep = "/", gap.size = NULL)
data.frame
integer, see codeGap
codeGap
character, see codeGap
Marcelo Reginato
data(monographaR_examples) monographaR_examples$dichoKey_q -> dat rownames(dat) <- dat[,1] dat[,-1] -> dat codeMatrix(dat, max.states = 3) -> mat head(mat)
Run the code above in your browser using DataLab