Flags trait values that do not suit the trait's type in the traits.yml file: a categorical value using a term not on the trait's list of allowed values, a monthly_presence value that is not twelve ys and ns, and a numeric value that cannot convert to numeric. A text value is not checked here. NA values are flagged as errors.

process_flag_unsupported_values(data, definitions)

Arguments

data

Tibble or dataframe containing the study data

definitions

Definitions read in from the traits.yml file in the config folder

Value

Tibble with flagged values that are unsupported categorical trait values, invalid monthly_presence values, missing values or numeric trait values that cannot be converted to numeric