Description Usage Arguments Details
View source: R/rsample_utils.R
Wrapper around rsample::rolling_origin()
used to facilitate resampling of irregular time
slices.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
Data to use for training and prediction. |
time_var |
A character. Name of date/time variable in |
start |
A character. Defines maximum date for observations in the analysis
group of the first split. If |
end |
A character. Defines maximum date/time in the assessment group of the last split.
If |
unit |
A character string specifying a time unit or a multiple of a unit to nest the data.
Valid base units are |
extend |
A logical. If |
assess |
The number of nested date/times used for each assessment resample. |
skip |
A integer indicating how many (if any) additional resamples to skip to thin the total amount of data points in the analysis resample. |
round_fun |
One of |
... |
Other arguments passed to |
Observations missing time_var
are preserved and predicted last.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.