Learn R Programming

monographaR (version 1.3.1)

dataKey: 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)

Value

data.frame

Arguments

dat

data.frame

poly.sep

character

return.summary

boolean

Author

Marcelo Reginato

Details

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

See Also

dichoKey

Examples

Run this code

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

Run the code above in your browser using DataLab