prepare_data: Prepare time series data for usage

Description Usage Arguments Details Value Examples

View source: R/prepare_data.R

Description

prepare_data transforms the time series into a usable format for time series analysis.

Usage

1
prepare_data(flows, stocks, inventory, target)

Arguments

flows

A list of time series variable (flow variables).

stocks

A list of time series variable (stock variables).

inventory

Inventory of the corresponding data.

target

Defines the target variable.

Details

The function conducts a normalization by demeaning and dividing by the standard deviation of the individual time series.

Value

A dataframe

Examples

1
2
Xmat <- prepare_data(flows = data$flows, stocks = data$stocks,
inventory, target = target)

h4sci/packagr documentation built on Jan. 7, 2021, 10:40 p.m.