date_group() groups by a single component of a date-time, such as month
of the year, or day of the month.
There are separate help pages for grouping dates and date-times:
date_group(x, precision, ..., n = 1L)x, grouped at precision.
# See type specific documentation for more examples
date_group(as.Date("2019-01-01") + 0:5, "day", n = 2)
#> [1] "2019-01-01" "2019-01-01" "2019-01-03" "2019-01-03" "2019-01-05"
#> [6] "2019-01-05"