geo-registry

terra::aggregate

How terra runs Resample Raster: terra::aggregate.

About this implementation
Engine terra
Tool name terra::aggregate
Interface r
Implements Resample Raster
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
fact any no 2 Not stated Not stated
fun any no "mean" Not stated Not stated
cores any no 1 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
by any no NULL Not stated Not stated
dissolve any no TRUE Not stated Not stated
count any no TRUE Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
raster x Not stated
resolution Not stated fact: how many cells to combine in each direction (2 doubles the cell size).
resampling fun average = mean; mode = modal. not supported: nearest, bilinear, cubic

Differences from the operation

  • Only coarsens, by whole factors; disagg makes cells smaller. On a SpatVector, aggregate dissolves instead.

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