Description Usage Arguments Value Examples
View source: R/HELPER_get_actuals_from_main_forecasting_table.R
get_actuals_from_main_forecasting_table
is a function to extract the
actuals from the main forecasting table, e.g. to be used for plotting.
1 | get_actuals_from_main_forecasting_table(main_forecasting_table, for_plot = F)
|
main_forecasting_table |
A tibble containing several columns of data
required for time series forecasting, which has been created using the
|
for_plot |
Boolean, which is to be set to TRUE if specific transformations should be performed to make the data ready for one of the plotting functions available within the package, or set to FALSE if these additional transformation should not be applied. |
A tibble containing the actual values of the column of interest per period.
1 2 3 4 5 6 7 8 9 10 11 | main_forecasting_table <- tstools::initialize_ts_forecast_data(
data = dummy_gasprice,
date_col = "year_month",
col_of_interest = "gasprice",
group_cols = c("state", "oil_company")
) %>%
create_main_forecasting_table(
data = data,
seasonal_periods = c(12,3)
)
get_actuals_from_main_forecasting_table(main_forecasting_table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.