buffer.dist-methods: Derive buffer distances for a list of points

Description Usage Arguments Value Author(s) References Examples

Description

Derive buffer distances using the raster::distance function, so that these can be used as predictors for spatial prediction i.e. to account for spatial proximity to low, medium and high values.

Usage

1
2
3
4
5
6
7
8
9
## S4 method for signature 'SpatialPointsDataFrame,SpatialPixelsDataFrame'
buffer.dist(
  observations,
  predictionDomain,
  classes,
  width,
  parallel = TRUE,
  ...
)

Arguments

observations

SpatialPointsDataFrame.

predictionDomain

SpatialPixelsDataFrame.

classes

vector of selected points as factors.

width

maximum width for buffer distance.

parallel

optional parallelization setting.

...

optional arguments to pass to raster::distance function.

Value

object of class SpatialPixelsDataFrame with distances to points

Author(s)

Tom Hengl

References

Examples

1
2
3
4
5
library(raster)
library(rgdal)
demo(meuse, echo=FALSE)
b <- buffer.dist(meuse["zinc"], meuse.grid[1],
        classes=as.factor(1:nrow(meuse)), parallel=FALSE)

landmap documentation built on Oct. 14, 2021, 5:24 p.m.