aggreg: Aggregation function for Ecosystem Functional Properties

Description Usage Arguments

View source: R/aggreg.R

Description

Aggregation function for Ecosystem Functional Properties

Usage

1
2
3
4
5
6
7
8
aggreg(
  x,
  aggregation.time,
  aggregation.metric,
  dates,
  overlapping = NULL,
  probs
)

Arguments

x

EFPs to be aggregated.

aggregation.time

Can be "day", "month", "year", growing season "gs". if it's a number it's considered as a time window in number of days. If "optim" the optimum number of days will be estimate to reduce the sd of each chunck.

aggregation.metric

Can be "mean", "max", "min", "median", and "quant". if "quant" a number between 0 and 1 need to be provided in prob parameter.

dates

A vector of class "Date" of the same length of x.

overlapping

Can be "NULL" or a number. If it's a number equivale to the parameter by of the rollapply function.

prob

Only used if aggregation.metric is "quant", a number between 0 and 1. By default 0.9.


dpabon/ecofunr documentation built on July 15, 2020, 12:58 p.m.