skgrange / threadr

Tools to Thread Pieces Of Data Analysis Together
GNU General Public License v3.0
31 stars 7 forks source link

[Feature]: support multiple summary functions (or add check for length == 1) #11

Closed mooibroekd closed 1 month ago

mooibroekd commented 1 month ago

It would be great if aggregate_by_date can support multiple summary parameters (i.e., summary = c("mean", "min", "max")). Currently the error that is given is:

Error in if (summary == "data_capture") { : the condition has length > 1

If this is not feasible, then a check for the length of summary and a helpful message would be nice. (I am well aware it is quite easy to do multiple runs and join all the data into a single output. Hence, this might not be high on the list of priorities ;-)).