To change character to date

There are other ways to perform time aggregation without losing the date class, take a look at the tsibble package.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like