Format location data read in from the metadata.yml file, in either of the two forms read_metadata() returns it: the list of locations given by an inline locations: block, or the data frame read from the csv file a locations: locations.csv entry names.

process_format_locations(my_list, dataset_id, schema)

Arguments

my_list

List of input information, or a data frame with a location_name column and one further column per location property

dataset_id

Identifier for a particular study in the AusTraits database

schema

Schema for traits.build

Value

Tibble with location details if available

Examples

if (FALSE) { # \dontrun{
process_format_locations(read_metadata("data/Falster_2003/metadata.yml")$locations, "Falster_2003")
} # }