distance_from_source: Distance from Source

View source: R/fun_spatial.R

distance_from_sourceR Documentation

Distance from Source

Description

Generate a raster of distances from source(s), restricted to a maximum search distance.

Usage

distance_from_source(x, r, feature, maxdist)

Arguments

x

the source object(s), as sf polygons

r

a template raster of the desired extent and resolution

feature

feature name for informative messages

maxdist

distance (m) past which the source is considered not to have an effect

Value

a raster where cell values are distance in meters from sources (which have values of 0)


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.