getFinancialYearFromDate: Get the Financial Year from a particular Date

Description Usage Arguments Value Examples

View source: R/featureEngineering.R

Description

This is used for the extractDateFeatures default function for retrieving the financial year. Based on the financial year starting on 1st July of every year.

Usage

1

Arguments

date

A date containing a vector of dates to compute the financial year for.

Value

The financial year associated to each date.

Examples

1
2
getFinancialYearFromDate(as.Date("26/06/2016","%d/%m/%Y"))
getFinancialYearFromDate(as.Date("26/07/2016","%d/%m/%Y"))

ivanliu1989/RQuant documentation built on Sept. 13, 2019, 11:53 a.m.