prescribe_ts: Data prescription

Description Usage Arguments Value Examples

View source: R/data_preparation.R

Description

Prescribe provides a simple way to prepare the data for ingestion

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
prescribe_ts(
  .data_init,
  key = NULL,
  y_var,
  date_var,
  reg_name = NULL,
  reg_value = NULL,
  freq,
  date_format
)

Arguments

.data_init

DataFrame or tibble.

key

Column name of the key if any.

y_var

Column name of the variable to be forecasted.

date_var

Column name of time index.

reg_name

Column name of the regressors.

reg_value

Column name of the regressors' values.

freq

Frequency of the data.

date_format

string: date format such as "ymd".

Value

data-frame

Examples

1
2
3
4
## Not run: 
prescribe_ts()

## End(Not run)

opoyc/autoforecast documentation built on May 18, 2021, 1:29 a.m.