Flags any categorical traits values that are not on the list of allowed values defined in the traits.yml file. NA values are flagged as errors. Numeric values that cannot convert to numeric are also 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, missing values or numeric trait values that cannot be converted to numeric