fptoDate: Takes a vector of fiscal or calendar periods and returns a...

Description Usage Arguments Details Value Author(s)

Description

Takes a vector of fiscal or calendar periods and returns a vector of dates, the first date of each month

Usage

1
fptoDate(mydata, n = 6, fiscal = TRUE)

Arguments

mydata

an integer vector of fiscal period of the form yyyymm

n

number of months difference between the fiscal year and the calendar year

fiscal

Logical, whether the mydata consisits of calendar or fiscal periods

Details

A fiscal period 201701 starting in July 1st, 2016 would have a n=6 ( This is 'new fiscal year starts july 1st' scenario. 201701 should return as.Date('2016-01-07')

Value

a vector of dates, where the day is the first day of the month

Author(s)

Matthew Davis


mdavis29/fpTools documentation built on May 22, 2019, 3:22 p.m.