Description Usage Arguments Details
View source: R/diff_pred_planned.R
This function calculates the difference between planned and predicted sales.
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)
|
.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. |
If someone is interested for a detailed documentation: Go Home!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.