Creating an object containing a standardised trait definition according to the Ecological Traitdata Standard. Parameters correspond to the definition at https://ecologicaltraitdata.github.io/ETS/#terms-for-trait-definitions.
as.trait( trait, identifier = NA, broaderTerm = NA, narrowerTerm = NA, relatedTerm = NA, valueType = NA, expectedUnit = NA, factorLevels = NA, replaceFactorLevels = NA, maxAllowedValue = NA, minAllowedValue = NA, traitDescription = NA, comments = NA, source = NA, version = NA, author = NA, ... )
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.
One or several terms that are related to this term (ideally given as URI).
the type of trait values. Possible entries are 'numeric', 'integer', 'categorical', 'logical', or 'character'.
the unit expected for measurement entries.
A comma separated list of terms comprising the constrained vocabulary for categorical traits or ordinal binary traits.
A list or vector containing synonymous factor levels to be mapped onto the target factor levels provided in 'factorLevels'. Names of the vector or list entries will be superimposed by entries in 'factorLevels'.
An upper boundary for accepted numerical values.
A lower boundary for accepted numerical values.
A short, unambiguous definition of the trait. May refer to a method of measurement.
Details and Examples for clarification of the trait definition.
A character string providing a full bibliographic reference to the trait definition (giving title, author, year and publication).
A character string containing the version number of the referenced definition (e.g. "v1.2"), if applicable.
A character string or object of class 'person' (as created by
other arguments, passed on to print function.
A structured data.frame object of class 'trait'.
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", broaderTerm = "http://t-sita.cesab.org/BETSI_vizInfo.jsp?trait=Body_dimension" )