grates is an R package designed to make it easy to group dates across a range of different time intervals. It defines a collection of classes and associated methods that, together, formalise the concept of grouped dates and are intuitive to use.
You can install the latest release of grates from CRAN with:
install.packages("grates")