tidy_date: Quickly tidy dates

View source: R/general_functions.R

tidy_dateR Documentation

Quickly tidy dates

Description

Combines two formating functions in one to make working with dates less terrible. The first thing the function does is take a character vector of the format MM/DD/YYYY and tell R to change it to the more stat-software-friendly-format YYYY-MM-DD. It then converts this reformatted character string into a date object with the lubridate package.

Usage

tidy_date(col, includes_timestamp = TRUE)

Arguments

col

The date column you want to change.


ryan-a-schneider/legaldmlab documentation built on July 2, 2023, 5:02 a.m.