View source: R/validate_colnames.R
validate_colnames | R Documentation |
Validate column names against codebook
validate_colnames(
df,
codebook_name,
db_folder,
crop_types = NULL,
cb_name_remove = NULL
)
df |
A data.frame with column names to verify against the codebook names against e.g. "trial_data", "trials_metadata" |
codebook_name |
A string denoting the book name.
Use |
db_folder |
A string path to the database controlled vocabulary folder |
crop_types |
A vector containing the crop_types. This is used to select the appropriate traits if codebook_name == "trial_data" |
cb_name_remove |
A string denoting the name of the codebook to remove from the data (df) For example, if testing "trial_data", remove the names in df that correspond to "trials_metadata" |
Other validation functions:
confront_data()
,
create_rules()
,
find_col_info()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.