Aggregates data from a wide-format data frame according to a specified frequency and applies aggregation and post-processing functions.
aggr_by_freq(
table,
freq,
prep_fun,
aggr_funs,
postp_funs,
variable_name,
preprocess_body
)
A data frame in wide format with aggregated values.
[mandatory] (data.frame) A wide-format data frame.
[mandatory] (character) Specifies the frequency to aggregate the data.
[mandatory] (function) Function used for pre-processing.
[mandatory] (function or list) Aggregation function(s).
[mandatory] (function or list) Post-processing function(s).
[mandatory] (character) Name of the current variable.
[mandatory] (character) Body of the prep_fun
function.