Dates - Cghlewis/data-wrangling-functions GitHub Wiki

Dates can be tricky to work with for many reasons including time zones, daylight savings, leap years, and more. Below are a few examples of working with dates and times in R.

Convert a character or numeric variable to a date

Convert an Excel formatted month-day variable to the intended non-date, numeric values

  • Convert a variable to numeric values (See Data Types)

Calculate a difference between dates

  • Calculate the number of months between two dates (See Data Types)

Resources