std_dates: Parse Dates to Standard Format

View source: R/server-std_dates.R

std_datesR Documentation

Parse Dates to Standard Format

Description

'std_dates' standardizes a date vector and returns a vector in 'Date' or 'POSIXct' format, depending on whether there is sub-daily information available in the data.

Usage

std_dates(x, orders = c("dmy", "mdy", "ymd", "dmyT", "mdyT", "ymdT"))

Arguments

x

A vector of dates in a 'Date'- or 'POSIXct'-like format, or as character strings

orders

The orders to use when parse character strings with parse_date_time()

Value

A 'Date' or 'POSIXct' vector


jesse-smith/schedules documentation built on July 21, 2022, 9:40 a.m.