Learn R Programming

intSDM (version 2.1.1)

obtainCovariate: obtainCovariate: Function to obtain a covariate later for a specified country.

Description

Function to obtain covariate layers from WorldClim or ESA around a specified area.

Usage

obtainCovariate(covariates, type, res, projection, path)

Value

A spatialRaster object of the covariates across the specified area.

Arguments

covariates

A vector of covariate names to obtain.

type

Type of covariate to include. Must be one of: 'worldclim' or 'landcover'.

res

Resolution of the worldclim variable. Valid options are: 10, 5, 2.5 or 0.5 (minutes of a degree).

projection

Coordinate reference system to use in analysis.

path

The path where the covariate will be saved.