getMonthOrYear: DESC: pulls the month or year from string

Description Usage Arguments Value Examples

View source: R/getMonthOrYear.R

Description

DESC: pulls the month or year from string

Usage

1
getMonthOrYear(date, yearOrMonth)

Arguments

date

character vector of the form YYYY-MM-DD

yearOrMonth

character vector 'year' or 'month'

Value

character of 'yyyy' or 'mm'

Examples

1
getMonthOrYear('2018-08-22')

mlgiordano1/MGBudgetPkg documentation built on Oct. 27, 2018, 12:14 a.m.