Learn R Programming

neotoma2 (version 1.0.8)

get_speleothems: get_speleothems

Description

get_speleothems

Usage

get_speleothems(x = NA, ...)

# S3 method for numeric get_speleothems(x, ...)

# S3 method for sites get_speleothems(x, ...)

Value

sites object with speleothem data

Arguments

x

A dataset ID or vector of dataset IDs

...

accepted arguments

Author

Socorro Dominguez dominguezvid@wisc.edu

Details

Experimental function: API and behavior may change. The get_speleothems() command wraps the Neotoma API (api.neotomadb.org) call for speleothems. The call itself uses a SQL query which accepts any one of the following parameters:

  • x The unique dataset ID (integer) in Neotoma. Can be passed as a vector of dataset IDs.

  • sites A sites R object.

Examples

Run this code
{
## Find speleothems by numeric datasetid:
tryCatch({
  speleo <- get_speleothems(c(2,5))
}, error = function(e) {
  message("Neotoma server not responding. Try again later.")
})
}

Run the code above in your browser using DataLab