View source: R/manifest_trait_metadata.R
check_trait_type | R Documentation |
Check that specified trait type metadata matches the dataframe of manifest traits. This provides a non-exhaustive series of checks.
check_trait_type(manifest_trait, name, type, levels)
manifest_trait |
Variable(s) from a daframe. The manifest trait recordings to be checked. |
name |
A character scalar. The name of the trait to be checked. |
type |
A caracter scalar. One of c("ord", "nom", "con", "fvt"). The type of trait to be checked. |
levels |
A scalar. The number of levels associated with a discrete manifest trait. NA when traits are continuous. |
If the conditions are not met then returns an error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.