View source: R/manifest_trait_metadata.R
compare_metadata_to_df | R Documentation |
Compare the supplied meta data to that implicit in a data frame of manifest traits.
compare_metadata_to_df( n_traits, manifest_trait_df, trait_names, trait_type, trait_levels, manifest_trait_index )
n_traits |
A natural number. The number of manifest traits. |
manifest_trait_df |
A data frame. Observed manifest traits. |
trait_names |
A P-dimensional character vector. The manifest trait names. |
trait_type |
A P-dimensional vector of unordered factors belonging to one of 4 levels. The trait type corresponding to each of the named manifest traits. Ordinal traits are denoted ord, nominal are nom, scalar-valued continuous are con, and function-valued traits are fvt. |
trait_levels |
A P-dimensional vector. The number of levels associated with each manifest trait. NA for continuous traits. |
manifest_trait_index |
A P-dimensional list. columns of manifest_trait_df associated with each trait. List elements will be scalar valued for ordinal, nominal, and scalar-valued continuous traits. Function-valued traits are multi-variate and indexed by a vector of values. |
Reports error messages if metadata and dataframe do not match.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.