get_col_index | R Documentation |
This function is used to get the column index numbers for selected columns. The index vectors are used to set column styling for Excel data templates, i.e. highlighting required columns. Invalid codebook_names will throw an error.
get_col_index(
datalist,
db_folder,
codebook_name,
required_only = TRUE,
crop_types = NULL
)
datalist |
A list of dataframes with columns that match codebook variables |
db_folder |
A string path to the database controlled vocabulary folder |
codebook_name |
A string denoting the book name.
Use |
required_only |
A logical, FALSE returns all columns; TRUE returns required columns only |
crop_types |
A vector containing the crop_types. This is used to select the appropriate traits if codebook_name == "trial_data" |
Returns a list of integer vectors with the same list names as datalist
.
Other access codebook functions:
get_variety_db()
,
list_db_books()
,
list_db_var()
,
readin_db()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.