Learn R Programming

BeeBDC (version 1.2.0)

USGS_formatter: Find, import, and format USGS data to Darwin Core

Description

The function finds, imports, formats, and creates metadata for the USGS dataset.

Usage

USGS_formatter(path, pubDate)

Value

Returns a list with the occurrence data, "USGS_data", and the EML data, "EML_attributes".

Arguments

path

A character path to a directory that contains the USGS data, which will be found using fileFinder(). The function will look for "USGS_DRO_flat".

pubDate

Character. The publication date of the dataset to update the metadata and citation.

Examples

Run this code
if (FALSE) {
USGS_data <- USGS_formatter(path = DataPath, pubDate = "19-11-2022")
}

Run the code above in your browser using DataLab