Learn R Programming

RuHere (version 1.0.1)

prepared_metadata: Metadata templates used internally by format_columns()

Description

A named list of data frames containing metadata templates for the main biodiversity data providers supported by the package (GBIF, SpeciesLink, iDigBio, and BIEN).

These templates are used internally by format_columns() to harmonize columns.

Usage

prepared_metadata

Arguments

Format

A named list of four data frames:

  • $gbif — template for GBIF dataset.

  • $specieslink — template for SpeciesLink dataset.

  • $idigbio — template for iDigBio dataset.

  • $bien — template for BIEN dataset.

Details

Each element of prepared_metadata is a single-row data frame where:

  • column names correspond to the package’s standardized output fields

  • values in the row represent the original column names used by each data provider

These mappings allow format_columns() to:

  • rename fields (e.g., scientificnamescientificName)

  • identify which variables are missing or provider-specific

  • coerce classes consistently (e.g., dates, coordinates)

  • ensure compatibility when combining datasets from different sources

See Also

format_columns()

Examples

Run this code
# View template for GBIF records
prepared_metadata$gbif


Run the code above in your browser using DataLab