10.5 Resources

This section provides some pointers to related resources.

10.5.1 Dates and times

Manipulate dates and times with **lubridate**<br>from [R&nbsp;Studio Cheat Sheets](https://www.rstudio.com/resources/cheatsheets/).

Figure 10.3: Manipulate dates and times with lubridate
from R Studio Cheat Sheets.

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 format string).

  • parsedate makes the very general date parsing utility from the git version control software available in R.

10.5.3 Books

  • The book Advanced R (Wickham, 2014a) contains several chapters on functional programming.


[10_time.Rmd updated on 2020-02-10 13:43:42 by hn.]


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