Learn R Programming

wallace (version 2.0.5)

occs_paleoDb: `occs_paleoDb` query paleobioDB database

Description

query paleobioDB database and returns the complete list of data, data with coordinates, and data with no duplicates

Usage

occs_paleoDb(spName, occNum, timeInterval, logger = NULL)

Value

A list of 2 dataframes. First dataframe is the original downloaded dataset, second dataframe without duplicates and with appropriate fields for analyses.

Arguments

spName

character. Species name. For paleobioDb it returns records associated with the specified taxonomic name, including any synonyms.

occNum

integer maximum number of records.

timeInterval

character currently a single timeInterval is allowed: "Holocene" (Holocene).

logger

Stores all notification messages to be displayed in the Log Window of Wallace GUI. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL

Author

Jamie Kass <jamie.m.kass@gmail.com>

Gonzalo E. Pinilla-Buitrago <gpinillabuitrago@gradcenter.cuny.edu>

Sara Varela <sara_varela@yahoo.com>

Details

This function is called by the module occs_queryDb to query the paleobioDB database for species occurrence records in the Holocene. It removes records with duplicate coordinates, and selects some columns with fields appropriate to studies in biogeography.

Examples

Run this code
if (FALSE) {
spName <- "Didelphis virginiana"
occNum <- 100
timeInterval <- "Holocene"
occsPaleo <- occs_paleoDb(spName, occNum, timeInterval)
}

Run the code above in your browser using DataLab