date456posix: Convert numeric dates in mddyy to POSIXct

View source: R/dates.R

date456posixR Documentation

Convert numeric dates in mddyy to POSIXct

Description

date456posix

Usage

date456posix(x, century)

Arguments

x

numeric where the first 1-2 digits specify the month attribute because leading zeros have been stripped

century

numeric century recommended choice of "19" or "20"

Details

Warning! Entries with a "real" two digit month but a "false" one digit day will assume that the return value should be a "false" one digit month and a "real" two digit day. For example, "10/6/2016" will return "2016-01-06". Consider using the mdy2mmyyy function instead.

See Also

mdy2mmyyy

Examples

dates <- c("51514", "101214", "8714", "1214", "81412", "2315")

date456posix(dates, century = "20")

jsta/rjsta documentation built on June 7, 2022, 8:39 p.m.