dataKey {monographaR}R Documentation

Prepares a data.frame suitable for buildKey

Description

This function takes a data.frame with polymorphic and/or missing data (NA) characters and prepares it to use in the function buildKey.

Usage

dataKey(dat, poly.sep = "/", return.summary = T)

Arguments

dat

data.frame

poly.sep

character

return.summary

boolean

Details

This function takes a data.frame with polymorphic characters and prepares it to use in the function buildKey.

Value

data.frame

Author(s)

Marcelo Reginato

See Also

dichoKey

Examples


data(monographaR_examples)

monographaR_examples$dichoKey -> dat
colnames(dat)[1] <- "species"

### Prepare matrix (polymorphic)

dataKey(dat, poly.sep = "/") -> dat.k
dat.k$dat -> dat.p


[Package monographaR version 1.3.1 Index]