This section provides some pointers to related resources.
10.5.1 Dates and times
See the lubridate cheatsheet:
10.5.2 R packages
There are several dedicated R packages for parsing dates and times:
hms provides a simple class for storing durations or time-of-day values and displaying them in the hh:mm:ss format. The hms package (Müller, 2020) is part of the tidyverse (see https://hms.tidyverse.org).
anytime is an anything to ‘POSIXct’ or ‘Date’ converter (without requiring a
parsedate makes the very general date parsing utility from the git version control software available in R.
Müller, K. (2020). hms: pretty time of day. Retrieved from https://CRAN.R-project.org/package=hms
Wickham, H. (2014a). Advanced R (1st ed.). Retrieved from http://adv-r.had.co.nz/
Wickham, H., & Grolemund, G. (2017). R for data science: Import, tidy, transform, visualize, and model data. Retrieved from http://r4ds.had.co.nz