get.environ: read predictors and add respective values to your spatial...

Description Usage Arguments Details Value Examples

View source: R/func.dataset.R

Description

takes your response as SpatialPoints or SpatialPointsDataFrame and add values from a RasterLayer, RasterStack, or RasterBrick at those positions. New columns will have the names of the respective raster layers.

Usage

1
get.environ(points, environ, dropcols = TRUE)

Arguments

points

SpatialPoints or SpatialPointsDataFrame

environ

RasterLayer, RasterStack, or RasterBrick

dropcols.

if TRUE, remove preexisting columns in points that also exist in environ under the same name.

Details

If FALSE, preexisting columns in points will be overwritten by column creates by looking up values in raster layers with the same name. #FIXME

Value

SpatialPointsDataFrame

Examples

1
#FIXME

janhoo/crecs documentation built on May 18, 2019, 12:25 p.m.