date_month: Convert Dates to Calendar Month

Description Usage Arguments Details Value Author(s)

View source: R/panthr.r

Description

date_month converts date field values in DD-MMM-YY format to full-length or abbreviated month names.

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.

abbreviate

A logical value (i.e. TRUE or FALSE) indicating whether to convert months to an abbreviated, 3-character format, e.g. "Aug." Defaults to FALSE.

Details

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.

Value

A scalar or vector of values of class character containing full-length or abbreviated month names, e.g. "January" or "Jan", respectively.

Author(s)

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


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