codeMatrix {monographaR} | R Documentation |
Code character matrix
Description
This is a wrapper function to codeGap, which accepts a data.frame of characters values including ranges (1-10).
Usage
codeMatrix(dat, n = NULL, max.states = NULL, poly.sep = "/", gap.size = NULL)
Arguments
dat |
data.frame |
n |
integer, see |
max.states |
integer, see |
poly.sep |
character, see |
gap.size |
integer, see |
Value
data.frame
Author(s)
Marcelo Reginato
See Also
Examples
data(monographaR_examples)
monographaR_examples$dichoKey_q -> dat
rownames(dat) <- dat[,1]
dat[,-1] -> dat
codeMatrix(dat, max.states = 3) -> mat
head(mat)
[Package monographaR version 1.3.1 Index]