R/formattedCombiner.R
formattedCombiner.Rd
Merges the Darwin Core version of the USGS dataset that was created using USGS_formatter()
with the main dataset.
formattedCombiner(path, strings, existingOccurrences, existingEMLs)
A directory as character. The directory to look in for the formatted USGS data.
A regex string. The string to find the most-recent formatted USGS dataset.
A data frame. The existing occurrence dataset.
An EML file. The existing EML data file to be appended.
A list with the combined occurrence dataset and the updated EML file.
if (FALSE) { # \dontrun{
DataPath <- tempdir()
strings = c("USGS_DRO_flat_27-Apr-2022")
# Combine the USGS data and the existing big dataset
Complete_data <- formattedCombiner(path = DataPath,
strings = strings,
# This should be the list-format with eml attached
existingOccurrences = DataImp$Data_WebDL,
existingEMLs = DataImp$eml_files)
} # }