get_train_end_date: Get last possible date of training data for given aheads.

Description Usage Arguments Value

View source: R/matrix.R

Description

Returns the last possible date of the training data for a given set of aheads. If more than one ahead is given, the date return corresponds to the last possible date corresponding to the smallest ahead value. This is because the smallest ahead value will have the latest possible date.

Usage

1
get_train_end_date(lagged_df, ahead)

Arguments

lagged_df

Data frame of lagged data as in create_train_and_predict_matrices().

ahead

Number of days ahead to forecast. Can be a single positive integer or a vector of positive integers.

Value

Single date corresponding to the last possible date of the training data.


dshemetov/modeltools-mirror documentation built on Jan. 7, 2022, 12:23 a.m.