Learn R Programming

galah (version 1.5.4)

collect_occurrences: Collect occurrence records from a pre-existing DOI or URL

Description

[Experimental]

Download occurrence records using an existing DOI or URL. Pre-existing DOIs and URLs come from previously generated downloads using atlas_occurrences or online.

Usage

collect_occurrences(url, doi)

Value

An object of class tbl_df and data.frame (aka a tibble) of occurrences

Arguments

url

string: Retrieve occurrence records previously downloaded from the ALA, using the URL provided via email.

doi

string: Retrieve occurrence records previously downloaded from the ALA, using the DOI generated by the data.

Examples

Run this code
if (FALSE) {
# Download previously retrieved records using an existing DOI or URL
collect_occurrences(doi = "your-doi")

# DOIs can be minted by adding `mint_doi = TRUE` to `atlas_occurrences()`
records <- 
  galah_call() |>
  galah_identify("perameles") |>
  galah_filter(year == 2001) |>
  atlas_occurrences(mint_doi = TRUE)

attributes(records)$doi # return minted doi
}

Run the code above in your browser using DataLab