focalExtract: Focal extraction from a raster object A function to extract...

Description Usage Arguments Author(s)

View source: R/extraction.R

Description

Focal extraction from a raster object A function to extract raster values from neighbourhood of points.

Usage

1
2
3
4
5
6
7
8
focalExtract(
  r,
  p,
  neighbourhood = c(3, 3),
  fun = mean,
  na.rm = TRUE,
  progress = TRUE
)

Arguments

r

raster layer

p

the spatial point or sf objects

neighbourhood

the dimention of the neighourhood kernel

fun

function to summarize the extracted values (e.g. mean). If no function is provided, a list is retuned

na.rm

logical. If na.rm=TRUE (the default value), NA values are removed before fun is applied.

progress

logical. Show a progress par.

Author(s)

Roozbeh Valavi


rvalavi/myspatial documentation built on May 15, 2021, 12:14 a.m.