time_series_cv {modeltime.resample}R Documentation

Time Series Resampling Sets and Plans

Description

These resampling tools are exported from the timetk package.

Examples


# Generate Time Series Resamples
resamples_tscv <- time_series_cv(
    data        = m750,
    assess      = "2 years",
    initial     = "5 years",
    skip        = "2 years",
    slice_limit = 4
)

resamples_tscv

# Visualize the Resample Sets
resamples_tscv %>%
    tk_time_series_cv_plan() %>%
    plot_time_series_cv_plan(
        date, value,
        .facet_ncol  = 2,
        .interactive = FALSE
    )


[Package modeltime.resample version 0.2.3 Index]