get_sites.sites: Get Site Information for Fossil Sites from a Set of Sites

View source: R/get_sites.R

get_sites.sitesR Documentation

Get Site Information for Fossil Sites from a Set of Sites

Description

Get Site Information for Fossil Sites from a Set of Sites

Usage

## S3 method for class 'sites'
get_sites(x, ...)

Arguments

x

The numeric site ID from Neotoma

...

accepted arguments if numeric all_data

Value

The function returns either a single item of class "try-error" describing the reason for failure (either misdefined parameters or an error from the Neotoma API), or a table of sites, with rows corresponding to the number of individual sites returned by the Neotoma API. Each "site" object contains 6 parameters that can be accessed as well: siteid, sitename, location, altitude, description, limited collection units information.

  • loc An sf object that describes site's location.

  • collunits limited information on collunits

Examples


## Find all sites using a set of prior sites:
char_sites <- get_sites(taxa = "charcoal")
pollen_coloc <- get_sites(char_sites, datasettype = "pollen")
char_coloc <- char_sites %>% filter(siteid %in% getids(pollen_coloc)$siteid)
pol_char <- c(pollen_coloc, char_coloc)


neotoma2 documentation built on May 29, 2024, 6:21 a.m.