set_training_data: Set training data

Description Usage Arguments

View source: R/get_training_data.R

Description

This function adds a column 'training' to a data.frame, a logical indicating if data points are part of the training set ('callibrartion window'), or not. The last 'k' time units from a dataset to define a training set. Time is known through the name of a column indicating time.

Usage

1
set_training_data(x, date_index, k)

Arguments

x

A data.frame or a tibble.

date_index

The name of the variable in df to be used as time.

k

The number of the last data points to exclude from the training set. These will be the last k unique values of the time column.


reconhub/epichange documentation built on April 8, 2021, 3:45 a.m.