codeMatrix: Code character matrix

View source: R/codeMatrix.R

codeMatrixR 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 codeGap

max.states

integer, see codeGap

poly.sep

character, see codeGap

gap.size

integer, see codeGap

Value

data.frame

Author(s)

Marcelo Reginato

See Also

codeGap

Examples


data(monographaR_examples)
monographaR_examples$dichoKey_q -> dat
rownames(dat) <- dat[,1]
dat[,-1] -> dat

codeMatrix(dat, max.states = 3) -> mat
head(mat)



mreginato/monographaR documentation built on Feb. 10, 2024, 8:53 p.m.