If you ever need to work with data involving dates, times or durations in R, then take a look at this free course on LinkedIn Learning presented by Mark Niemann-Ross: R Programming in Data Science: Dates and Times. Here's the course overview from the introductory video:
When did Mount St Helens last erupt? How many birds migrated south this month? Which month last year was the coldest on average? These are questions related to time. And if you're going to perform calculations on this type of data, then you need date and time data structures. I
I'll show you how to store dates and times, how to retrieve dates and times, and how to add and subtract dates and times to discover the duration of an event or the difference between two dates. I'll show how to handle dates for business research and for financial forecasting. We'll explore functions include with base R for dates and time calculations, and we'll explore packages that provide special ways to work with dates and times.
The course does assume some basic familiarity with R syntax, but does start from the beginning with the base R date and time classes before moving on to the newer Tidyverse packages for handling date and time data. Each chapter also includes a quiz to test your knowledge.
The course content is free to view, and all the R scripts associated with the course are available to download as well.
LinkedIn Learning: R Programming in Data Science: Dates and Times