Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • airGR airGR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 60
    • Issues 60
    • List
    • Boards
    • Service Desk
    • Milestones
  • Redmine
    • Redmine
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • HYCAR-HydroHYCAR-Hydro
  • airGRairGR
  • Issues
  • #143
Closed
Open
Issue created Dec 16, 2021 by Dorchies David@david.dorchiesDeveloper

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")
Assignee
Assign to
Time tracking