Format context data read in from the metadata.yml file. Converts from list to tibble.

process_format_contexts(my_list, dataset_id, traits, metadata_traits = NULL)

Arguments

my_list

List of input information

dataset_id

Identifier for a particular study in the AusTraits database

traits

Table of trait data (for this function, just the data.csv file with custom_R_code applied)

metadata_traits

The traits section of metadata.yml, as a list. Supplies the context values for a context whose var_in names a field set literally on the trait entries rather than a column of data.csv.

Value

Tibble with context details if available

Examples

if (FALSE) { # \dontrun{
process_format_contexts(read_metadata("data/Apgaua_2017/metadata.yml")$context, dataset_id, traits)
} # }