powered by
Aggregates an input field z to an array at coarser resolutions c(nas,nas) by box averaging. The input array can contain missing values.
z
c(nas,nas)
agg(z, nas)
matrix containing the fine field to aggregate.
target dimension for the output field.
The coarse field obtained by box averaging.
# NOT RUN { z <- rnorm(64 * 64) dim(z) <- c(64, 64) za <- agg(z, 4) dim(za) # [1] 4 4 # }
Run the code above in your browser using DataLab