SeriesAggreg: allow to define a unique aggregation function for multiple columns
SeriesAggreg
is very useful for calculating annual or monthly indicators.
For example, I use it to calculate annual hydrologic indicator on data.frame containing the simulated flow for plenty of gauging stations.
For doing that, I have to write:
SeriesAggreg(dfQ, Format = "%Y", ConvertFun = rep("calcMyIndicator", ncol(dfQ) - 1))
Could we assume that if a unique function is provided by the user for ConvertFun
therefore it is implicitly applied for all columns?
This syntax would be largely more convenient:
SeriesAggreg(dfQ, Format = "%Y", ConvertFun = "calcMyIndicator")