clim_data: Get Bioclimatic Data For Community Data

View source: R/clim_data.R

clim_dataR Documentation

Get Bioclimatic Data For Community Data

Description

Obtains bioclimatic variables from the "WorldClim" dataset for the samples in a community data object, using geographical coordinates provided in the environmental table.

Usage

clim_data(com, x = "lon", y = "lat", k = 3, keep_data = T)

Arguments

com

a community data object.

x

name of the column in 'env' where the longitude coordinates are stored.

y

name of the column in 'env' where the latitude coordinates are stored.

k

the number of eigenvectors retained.

keep_data

logical, whether the downloaded bioclimatic database should be kept after extracting the data.

Details

Eigenvectors are obtained from a Principal Coordinates Analysis calculated from the bioclimatic data.

Value

A list with community data.

Examples

clim_data()

jgmv/comecol documentation built on June 6, 2023, 4:07 p.m.