Closed mooibroekd closed 1 month ago
The supported date intervals are provided by the lubridate package and multiple weeks are not supported because of potential ambiguity on what a user wants when considering multiple weeks. Would passing "14 days"
to the function do what you want? For example:
# Valid two-weekly aggregation?
aggregate_by_date(df, interval = "14 days")
If not, let me know and I can add a condition to push multiple weeks into seconds and use that as the interval. I hope this helps!
The
aggregate_by_date
function does currently not supportinterval = "2 week"
notations. If this is applied, then the error message is:I know that
openair::timeAverage
recalculates theavg.time
variable to seconds, with approximation for month, season and year.