CPtoCalendar: 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
2
CPtoCalendar(mydata, fillgap = TRUE, fiscal = TRUE,
  calendarname = holidayNYSE(2000:2020))

Arguments

mydata

an integer vector of calendar periods of the form yyyymm (defaults to fiscal)

fillgap

whether to fill in any missing fiscal periods, or only use the list given

fiscal

whether the calendar periods are a fiscal or calendar period

calendarname

Name for timdate package to deterimine holidays na buisness days

Details

This package is intended to get montly summaries of number holidays and weekdays for a particular calenar or fiscal month.

Value

a data frame of sums of weekdays, bizdays and holidays by the fiscal periods entered

Author(s)

Qichen Zeng, Matthew Davis


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