get_training_data: Get training data

Description Usage Arguments

View source: R/get_training_data.R

Description

This function removes 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
get_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.