loadClim: Load climate data.

Description Usage Arguments Details Value Author(s)

Description

This function load the climate data from a specified period of time and climate model. For this it takes the directory where the raster variables are and the pollen data that should with the latlong coordinates to extract the climate data.

Usage

1
loadClim(period, clim_model, pollen, indir, vars)

Arguments

period

Numeric. It should specify a period value (0-21000) to load the climatic data.

clim_model

String. It should specify the climatic model that will be loaded.

pollen

Matrix. Community matrix (species by sites) to be used to extract the climate data.

indir

String. Directory to look for the raster climate data.

vars

Character vector. It should specify the name of the variables that should be loaded.

Details

This function load only the climate data corresponding for the same coordinates as the pollen sites. This way we don't have to work with the raster loaded all the time.

Value

The output is a dataframe with a column for each climatic variable, and as many rows as pollen sites.

Author(s)

Diego Nieto Lugilde


dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.