aggregateArray: Aggregate a array(dim >=3)* object to create a lower...

Description Usage Arguments Value

View source: R/GeoTools.R

Description

Aggregate a array(dim >=3)* object to create a lower resolution (larger cells). Aggregation groups rectangular areas to create larger cells. The value for the resulting cells is computed with a user-specified function.

Usage

1
aggregateArray(OriginalWert, aggregateN, aggregateFunction = colMeans)

Arguments

OriginalWert

Original array Wert

aggregateN

integer. Aggregation factor expressed as number of cells in each direction (horizontally and vertically). Or two integers (horizontal and vertical aggregation factor) or three integers (when also aggregating over layers).

aggregateFunction

= colMeans, function used to aggregate values. Function must support vectorization of column as input, like base::colMeans.

Value

a lower resolution array(same dimensions)


MomentVon/HMtools documentation built on April 4, 2021, 8:57 p.m.