date_iso: Convert Dates to ISO Format

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

date_iso converts date field values in DD-MMM-YY format to the International Organization for Standardization (ISO) format, i.e. YYYY-MM-DD.

Usage

1

Arguments

date

A scalar or vector of length n and class character containing one or more date values in DD-MMM-YY format.

Details

Because the warehouse year format is YY, dates prior to 1930 C.E. will automatically convert to post-2000 C.E.

Values passed to argument date = which are not in DD-MMM-YY format or contain unrecognized month abbreviations are coerced to NA (missing) values and a warning message is thrown.

ISO dates are automatically recognized as dates in R and may be converted to different formats using as.* coersion functions, e.g. as.Date.

Value

A scalar or vector of values of class character containing standard ISO dates in YYYY-MM-DD format. Missing values are preserved.

Author(s)

Jamison R. Crawford, Institutional Research Associate, Georgia State University

See Also

date, POSIXct, POSIXlt


jamisoncrawford/panthr documentation built on March 9, 2020, 6:18 p.m.