10.3 Summary

ds4psy: (10) Time data

Summary of topics, key commands, and packages.

After working through this chapter, you are able to:

  1. understand the basic units of dates and times, and different time zones,
  2. understand the 2 Date-Time Classes of R,
  3. use base R functions to determine your current time and enter or parse Date objects,
  4. use lubridate functions to enter and compute with dates and times,
  5. use ds4psy functions to query dates and times.

For more information on loops in general, see the contributed cheatsheets on Base R and Advanced R. For an overview of manipulating dates and times with lubridate, take a look at the R Studio Cheat Sheet to check which commands you are now familiar with and which others you can still discover in the future:

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

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

Let’s test our knowledge and skills on entering and manipulating dates and times by completing the following exercises.