Read in all codebooks and create a combined cultivar file
Source:R/access_controlled_vocab.R
, R/factcurator_wrappers.R
readin_db.Rd
Read in all controlled variable codebooks and create a combined cultivar file in long format.
Value
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.
See also
Other access codebook functions:
get_col_index()
,
get_variety_db()
,
list_db_books()
,
list_db_var()