View source: R/confront_data.R
confront_data | R Documentation |
This functions summarises the results and fixes the inability for confront() to detect NAs with grepl. See create_rules() for more details.
confront_data(df, df_type, db_folder, blends = FALSE, crop_types = NULL)
df |
A data.frame to be validated |
df_type |
A string "trial_data" or "trials_metadata" denoting the type of validation rules to generate |
db_folder |
A string path to the database controlled vocabulary folder |
blends |
A logical denoting whether to check for blends in the variety column. The default is FALSE |
crop_types |
A vector containing the crop_types. This is used to select the appropriate traits if codebook_name == "trial_data" |
Other validation functions:
create_rules()
,
find_col_info()
,
validate_colnames()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.