Creating an object containing a standardised trait definition according to the Ecological Traitdata Standard. Parameters correspond to the definition at http://ecologicaltraitdata.github.io/ETS/#terms-for-thesauri.

as.trait(trait, identifier = NA, broaderTerm = NA, narrowerTerm = NA,
expectedUnit = NA, maxAllowedValue = NA, minAllowedValue = NA,
factorLevels = NA, valueType = NA, traitDescription = NA,
comments = NA, relationSource = NA, source = NA, version = NA,
author = NA, ...)

## Arguments

trait A character string, providing an intuitive, human-readable trait name. Unique identifier for the trait, ideally unique and stable URI which identify the source of the trait definition. One or several terms that enclose the trait definition. One or several terms that are enclosed by the trait definition. the unit expected for measurement entries. An upper boundary for accepted numerical values. A lower boundary for accepted numerical values. A comma separated list of terms comprising the constrained vocabulary for categorical traits or ordinal binary traits. the type of trait values. Possible entries are 'numeric', 'integer', 'categorical', 'logical', or 'character'. A short, unambiguous definition of the trait. May refer to a method of measurement. Details and Examples for clarification of the trait definition.

## Examples


body_length <- as.trait("body_length", expectedUnit = "mm", valueType = "numeric",
identifier = "http://t-sita.cesab.org/BETSI_vizInfo.jsp?trait=Body_length",
traitDescription = "The known longest dimension of the physical structure of organisms",
relationSource = "Maggenti and Maggenti, 2005",
)