1.16 lubridate - Tidy Data
Physical phenomena
![A gif of a spinning earth]()
- Rotation of the Earth
- Earth’s orbit around the sun
- Lunar orbit around Earth (for some calendars)
Computer Specifications
- A date (
<date>)
- A time (
<time>)
- A date-time (
<dttm>) a date plus time.
- A date-time with a time zone/locale (
<POSIXct>)
- Strings
"09/10/2010", "2026-08-07", "01.01.1970 00:00:00"
- Existing date/time objects
ymd("2026-10-05") + hours(12) + minutes(30)
- Date-time components (year = 1990, month = 12, day = 4)
Lubridate
![The lubridate cheat sheet from posit, with certain sections highlighted showcasing the importance of functions such as ymd_hms, ymd, mdy, now, and today.]()
Lubridate
![The lubridate cheat sheet from posit, with certain sections highlighted showcasing the importance of periods (events that happen at specific clock times) and durations (physical processes, modeled as seconds).]()