View source: R/predict_forecast.R
get_forecast_data | R Documentation |
Keep only the latest contiguous time series, dropping all other NA values from the response variable. Removes test column variables first.
get_forecast_data(df, response, sort_col, sort_descending, test_col)
df |
Data frame of model data. |
response |
Column name of response variable to be used as the input to the forecast function. |
sort_col |
Column name of column to arrange data by in |
sort_descending |
Logical value on whether the sorted values from |
test_col |
Name of logical column specifying which response values to remove
for testing the model's predictive accuracy. If |
A data series.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.