codeMatrix | R Documentation |
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)
dat |
data.frame |
n |
integer, see |
max.states |
integer, see |
poly.sep |
character, see |
gap.size |
integer, see |
data.frame
Marcelo Reginato
codeGap
data(monographaR_examples)
monographaR_examples$dichoKey_q -> dat
rownames(dat) <- dat[,1]
dat[,-1] -> dat
codeMatrix(dat, max.states = 3) -> mat
head(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.