fiscal: fiscal functions

Description Usage Arguments Value Note Examples

Description

fiscal year, fiscal quarter, month functions for dealing with 'Date' classes.

Usage

1
2
3
4
5
my_fy(x, format = NULL, fy_start = "Oct")

my_fy(x, format = NULL, fy_start = "Oct")

my_qtr(x, format = NULL, fy_start = "Oct")

Arguments

x

'Date' vector or a character vector that can be coerced to 'Date' class.

format

The format of the date, passed to date_convert.

fy_start

The month the fiscal year starts. May be abbreviated to three letters or be the full name of the month. The three-letter abbreviation must match the package zoo's abbreviations.

Value

A character vector.

Note

Consider making a new fiscal_year class and/or fiscal_quarter class. Also consider making some methods (this needs further consideration).

Examples

1
2
my_fy("10/1/2014")
my_qtr("9/30/2015")

JamesDalrymple/wccmh documentation built on May 7, 2019, 10:20 a.m.