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

Description Usage Arguments 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
3
longFormPreformance(mydata, nameKey = "FinancialSubdivisionName",
  valueCol = "PaymentAmount", timeCol = "CalendarPeriod",
  forcastInicatorCol = "forecastIncator")

Arguments

mydata

data frame with actual and forecasted data in long form

nameKey

column name that is the primary key for the forecast (ie bottom level)

valueCol

column names that has the forecats and actuals vales

timeCol

column with the time reference (intersection become the validation set)

forcastInicatorCol

logical, TRUE == is a forecasted value, FALSE = is actyual

Value

a dataframe of preformance metrics

Author(s)

Matthew Davis


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