date456posix: Convert numeric dates in mddyy to POSIXct

View source: R/misc.R

date456posixR Documentation

Convert numeric dates in mddyy to POSIXct

Description

Convert numeric dates in mddyy to POSIXct

Usage

date456posix(x, century)

Arguments

x

numeric where the first 1-2 digits specify the month attribute because leading zeros have been stripped. Also detects whether the day attributes has had stripped leading zeros.

century

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

Examples

x<-51514
date456posix(x,century="20")
dates<-c("51514","101214","8714","1214")
date456posix(dates,century="20")

jsta/DataflowR documentation built on Sept. 27, 2022, 11:13 p.m.