View source: R/access_controlled_vocab.R
readin_db | R Documentation |
Read in all controlled variable codebooks and create a combined cultivar file in long format.
readin_db(db_folder)
readin.db(db_folder)
db_folder |
A string path to the database controlled vocabulary folder |
A list of data frames; *.csv files in the controlled vocab folder.
Additionally creates a combined cultivar file, cultivar.csv, selecting crop, date_added, and all current variety/alias names for each crop_type. All variety/alias names are gathered in a single column, linked with a db_id number. The type_db column tracks whether the name is an alias or true variety name, and the intid_db column contains the cultivar name in lowercase with all spaces and punctuation removed, used for matching.
Other access codebook functions:
get_col_index()
,
get_variety_db()
,
list_db_books()
,
list_db_var()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.