Agg.t | R Documentation |
Function for temporal aggregation of environmental variables. Agg
is a wrapper function of
aggregate
from stats
package.
Agg.t(data, nameData, delta, func, namePlot)
data |
A |
nameData |
A |
delta |
A |
func |
The name of the function of aggregation e.g. |
namePlot |
A |
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. |
J.A. Torres-Matallana
## temporal aggregation
library(EmiStatR)
data(P1)
colnames(P1) <- c("time", "P1")
head(P1)
library(stUPscales)
P1.agg <- Agg.t(data = P1, nameData = "P1", delta = 120 , func = sum,
namePlot = "Temporal aggregation of precipitation P1")
head(P1.agg)
tail(P1.agg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.