term_year_calendar: Convert Term to Calendar Year

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

term_year_calendar formats the TERM field by eliminating the last two digits, i.e. from YYYYMM to YYYY, in effect converting it to the calendar year.

Usage

1

Arguments

term

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

Details

Output may be made categorical or ordinal nominal using function factor or as.factor, which may specify order. This function also allows for easily tallying counts using, e.g., function table.

Value

A scalar or vector of values in YYYY format with the calendar year.

Author(s)

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

See Also

substr, table


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