Read data tables of a data package from the EML metadata.
read_tables( eml, strip.white = FALSE, na.strings = NULL, convert.missing.value = NULL, add.units = FALSE )
eml | (xml_document, xml_node) EML metadata returned from |
---|---|
strip.white | (logical) Strips leading and trailing whitespaces of unquoted fields. Default if FALSE. |
na.strings | (character) Strings to be interpreted as NA. Setting |
convert.missing.value | (logical) Converts all missing value codes specified in |
add.units | (logical) If TRUE, a variable's unit of measurement will be added to the table in a separate column with a column name of the form: <unit>_<variable_name>. This argument is useful when gathering variables into a long (attribute-value) table. |
(list) List of named data frames
This function uses data.table::fread()
and uses default argument values if the EML based values return an error.
Default settings preserve the form the data were originally published in.