I have some problem with the combination of aggregate() and ave() in the same function with dates (format 2020-03-16), if I make:
aggregate()
ave()
2020-03-16