weighted.agg: The 'weighted mean' (and sample quantiles) of re-aggregation...

Description Usage Arguments Value

View source: R/Spatial_Functions.R

Description

The 'weighted mean' (and sample quantiles) of re-aggregation output

Usage

1
weighted.agg(reagg, probs = NA)

Arguments

reagg

A list. The output object of a call to reaggregate_raster or to reaggregate_shapefile.

probs

A numeric vector of probabilities with values in [0, 1] at which sample quantiles are returned or NA.

Value

An array. The first dimension corresponds to each rectangle, i.e., a row of coords; the second dimension corresponds to the layers of the re-aggregated and -sampled Raster* object x; And the third dimension corresponds to the aggregation type(s) (weighted mean, and sample quantiles if any).


DrylandEcology/rSFSW2 documentation built on Aug. 18, 2020, 1:27 p.m.