fiscal_quarter: Assign fiscal quarter to a date

Description Usage Arguments Value See Also Examples

View source: R/datetime.R

Description

Returns the fiscal quarter for the given date. This function is a modified version of lubridate::quarter. The original function had an issue and the solution was copied from https://github.com/tidyverse/lubridate/issues/682

Usage

1
fiscal_quarter(x, fiscal_start = 1)

Arguments

x

Date for which the fiscal quarter is desired

fiscal_start

The month in which the fiscal year begins e.g 7 for Australia

Value

numeric vector with the fiscal year and the quarter

See Also

https://github.com/tidyverse/lubridate/issues/682 for the original issue

Examples

1

amit-agni/cutlery documentation built on Dec. 31, 2019, 2:09 p.m.