geo-registry

terra::focal

How terra runs Focal Statistics: terra::focal.

About this implementation
Engine terra
Tool name terra::focal
Interface r
Implements Focal Statistics
Documentation Not stated
Effects modifies input: no, network: no
Notes S4 generic: parameters gathered from all its methods; each method takes a subset.
Status active

Parameters

Name Type Required Default Choices Note
x any yes Not stated Not stated Not stated
... dots no Not stated Not stated further arguments passed on
w any no 3 Not stated Not stated
fun any no "sum" Not stated Not stated
na.policy any no "all" Not stated Not stated
fillvalue any no NA Not stated Not stated
expand any no FALSE Not stated Not stated
silent any no TRUE Not stated Not stated
cores any no 1 Not stated Not stated
cpkgs any no NULL Not stated Not stated
filename any no "" Not stated Not stated
overwrite any no FALSE Not stated Not stated
wopt any no list() Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
raster x Not stated
statistic fun mean = mean; sum = sum; min = min; max = max; median = median; std = sd
size w Not stated

Differences from the operation

  • fun defaults to sum; w can also be a weights matrix.

Harvested by the r-packages harvester from engine version 1.9.50. Names can change when an engine is harvested again.