diff_pred_planned: Calculating difference between planned and predicted sales

Description Usage Arguments Details

View source: R/diff_pred_planned.R

Description

This function calculates the difference between planned and predicted sales.

Usage

1
2
3
4
diff_pred_planned(.pred, .pred_date = "date", .planned,
  .planned_date = "date", .level = "total", .key = "retail_sales_m3",
  .horizon = 1, .total_horizons = 3, .total_sales = NULL,
  .date_start = NULL, .date_end = NULL)

Arguments

.pred

List which contains a data frame for each level and horizon regarding the predictions.

.pred_date

Date column of .pred input

.planned

List which contains a data frame for each level and horizon regarding the planned sales.

.planned_date

Date column of .planned input

.level

Level of interest. Input can be a single string or a character vector.

.key

Key variable which is used for calculating the difference.

.horizon

The number of time horizons which are included in .pred.

.total_horizons

The number of total horizons which are included in .pred.

.total_sales

Parameter without any usefull functionality. But there can be something in the future.

.date_start

Parameter without any usefull functionality. But there can be something in the future.

.date_end

Parameter without any usefull functionality. But there can be something in the future.

Details

If someone is interested for a detailed documentation: Go Home!


MarlonSchumacher/packagedevelopment documentation built on June 15, 2020, 7:11 p.m.