Original covariates raster may have different projections. CovarExtract allows to extract in these different projections.

CovarExtract(x, cov.paths, names.cov, is.factor)

Arguments

x

SpatialPointsDataFrame

cov.paths

vector of paths of all raster files to be added in the multi-layer raster

names.cov

Optional. vector of names of multi-layer raster. Same length as x.

is.factor

position of covariates that are factors or categories. Resampling (if required) is bilinear by default but "ngb" (nearest neighbour) for factors.