Agg {EmiStatR} | R Documentation |
Temporal aggregation of environmental variables
Description
Function for temporal aggregation of environmental variables. Agg
is a wrapper function of
aggregate
from stats
package.
Usage
Agg(data, nameData, delta, func, namePlot)
Arguments
data |
A |
nameData |
A |
delta |
A |
func |
The name of the function of aggregation e.g. |
namePlot |
A |
Value
A data.frame
with two columns:
time |
the date-time time series of the aggregated variable |
value |
time series with the magnitude of the aggregated variable. |
Author(s)
J.A. Torres-Matallana
Examples
## temporal aggregation
library(EmiStatR)
data(P1)
colnames(P1) <- c("time", "value")
head(P1)
tail(P1)
P1.agg <- Agg(data = P1, nameData = "value", delta = 120 , func = sum,
namePlot = "")
head(P1.agg)
tail(P1.agg)