term_date_iso: Format Term as ISO Date

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

term_date_iso formats the TERM field by converting it into ISO (International Organization for Standardization) date format. That is, the YYYYMM value converts to YYYY-MM-DD, using the first day of the month.

Usage

1

Arguments

term

A 6-character TERM code, which may be a scalar value or vector of length n in YYYYMM format.

Details

Base functions, e.g. as.Date, as.POSIXct, and as.POSXlt, will coerce return values to various date classes, as ISO format is standard, unambiguous, and easily recognized by base R.

Value

A scalar value or vector values in ISO date format.

Author(s)

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

See Also

substr, paste, as.Date, as.POSIXct, as.POSIXlt


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