term_separate: Format Term by Separating Year and Month

Description Usage Arguments Value Author(s) See Also

View source: R/panthr.r

Description

term_separate is a simple function that formats the TERM field by separating the 4-digit year and 2-digit month with a user-defined delimiter. For example, the YYYYMM format converts to YYYY-MM by setting the delimiter to a dash, or "-".

Usage

1
term_separate(term, sep = "-")

Arguments

term

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

sep

A quoted string of class character specifying a delimiter between the term year and month, e.g. sep = "." for term = "201908" results in 2019.08. Defaults to sep = "_".

Value

A scalar TERM value or vector of TERM values in YYYY*MM delimited format.

Author(s)

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

See Also

substr, paste


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