ojo_fiscal_year: Determine the Oklahoma state fiscal year that a Date falls in

View source: R/ojo_fiscal_year.R

ojo_fiscal_yearR Documentation

Determine the Oklahoma state fiscal year that a Date falls in

Description

Returns the Oklahoma state fiscal year (July 1 - June 30) in which a given Date falls.

Usage

ojo_fiscal_year(date)

Arguments

date

An atomic value of class Date

Value

Fiscal year of a Date as an integer

Examples

## Not run: 
ojo_fiscal_year(ymd("2018-06-30"))
# Returns 2018

ojo_fiscal_year(ymd("2018-07-01"))
# Returns 2019

## End(Not run)


openjusticeok/ojodb documentation built on Aug. 4, 2024, 3:25 p.m.