Learn R Programming

crestr (version 1.2.1)

climate_from_xy: Extract The climate values associated to a set of coordinates.

Description

Extract The climate values associated to a set of coordinates.

Usage

climate_from_xy(
  long,
  lat,
  climate = accClimateVariables()[, 2],
  resol = 0.25,
  dbname = "gbif4crest_02"
)

Value

A data frame containing the climate values.

Arguments

long

The longitude of the site.

lat

The latitude of the site.

climate

The climate variables to extract the values from. Returns all possible values by default.

resol

The resolution of the target climatology (default 0.25 degrees).

dbname

The name of the data source database.

Examples

Run this code
if (FALSE) {
  climate_from_xy(50, 10, c('bio1', 'ai'))
  climate_from_xy(50, 10)
}

Run the code above in your browser using DataLab