financial_year_helpers: Financial year helpers

Description Usage Arguments Value Examples

Description

These functions return allow you to select variables based on their names. * 'fye()': returns the financial year ending * 'fyb()': returns the financial year beginning

Usage

1
2
3
fye(x)

fyb(x)

Arguments

x

A date-time object

Value

A numeric value giving the financial year ending or beginning.

Examples

1
2
3
4
require(lubridate)
x <- dmy("1/1/2015") + months(0:11)
fye(x)
# 2015 2015 2015 2015 2015 2015 2016 2016 2016 2016 2016 2016

camroach87/myhelpr documentation built on May 13, 2019, 11:03 a.m.