EEAaq_time_aggregate {EEAaq} | R Documentation |
Time aggregation of an EEAaq_df
class object.
Description
EEAaq_time_aggregate
compute a time aggregation of an EEAaq_df
or EEAaq_df_sfc
class object,
based on the specified frequency
and the aggregation functions aggr_fun
.
Usage
EEAaq_time_aggregate(
data = NULL,
frequency = "monthly",
aggr_fun = c("mean", "min", "max")
)
Arguments
data |
an |
frequency |
vector containing the time frequency for which to aggregate the |
aggr_fun |
character vector containing one or more agregation functions. Admissible values are 'mean', 'median', 'min', 'max', 'sd', 'var', 'quantile_pp' (where pp is a number in the range [0,1], representing the required percentile). |
Value
A EEAaq_taggr_df
or a EEAaq_taggr_df_sfc
class object, which is a tibble containing the
required time aggregation.
Examples
data <- EEAaq_get_data(zone_name = "Milano", NUTS_level = "LAU",
pollutant = "PM10", from = 2023, to = 2023, ID = FALSE, verbose = TRUE)
EEAaq_time_aggregate(data = data, frequency = "monthly", aggr_fun = c("mean", "min", "max"))
EEAaq_time_aggregate(data = data, frequency = "yearly", aggr_fun = "mean")
[Package EEAaq version 0.0.3 Index]