Build specified dataset. This function completes three steps, which can be executed separately if desired: dataset_configure, dataset_process, dataset_update_taxonomy

dataset_build(
  filename_metadata,
  filename_data_raw,
  definitions,
  unit_conversion_functions,
  schema,
  resource_metadata,
  taxon_list,
  filter_missing_values = TRUE
)

Arguments

filename_metadata

Metadata yaml file for a given study

filename_data_raw

Raw data.csv file for any given study

definitions

Definitions read in from the traits.yml

unit_conversion_functions

unit_conversion.csv file read in from the config folder

schema

Schema for traits.build

resource_metadata

metadata for the compilation

taxon_list

Taxon list

filter_missing_values

Default filters missing values from the excluded data table; change to false to see the rows with missing values

Value

List, AusTraits database object

Examples

if (FALSE) {
dataset_build(
  "data/Falster_2003/data.csv",
  "data/Falster_2003/metadata.yml",
  read_yaml("config/traits.yml"),
   get_unit_conversions("config/unit_conversions.csv"),
   get_schema(),
   get_schema("config/metadata.yml", "metadata"),
   read_csv_char("config/taxon_list.csv")
)
}