Learn R Programming

GWEX (version 1.1.3)

agg.matrix: agg.matrix

Description

Simple accumulation of a matrix of precipitation

Usage

agg.matrix(mat, k, average = F)

Value

aggregated matrix

Arguments

mat

matrix nDates x nStations to be aggregated

k

number of days for the accumulation

average

logical: should we average over the different periods (default=F)

Author

Guillaume Evin