initial_time_split()
error messagesCode
initial_time_split(drinks, prop = 2)
Condition
Error in `initial_time_split()`:
! `prop` must be less than 1.
Code
initial_time_split(drinks, lag = 12.5)
Condition
Error in `initial_time_split()`:
! `lag` must be a whole number.
Code
initial_time_split(drinks, lag = nrow(drinks) + 1)
Condition
Error in `initial_time_split()`:
! `lag` must be less than or equal to the number of training observations.
Code
initial_split(mtcars)
Output
<Training/Testing/Total>
<24/8/32>
Code
initial_time_split(mtcars)
Output
<Training/Testing/Total>
<24/8/32>
Code
initial_split(mtcars, prop = 1)
Condition
Error in `initial_split()`:
! `prop` must be less than 1.
Code
initial_time_split(mtcars, prop = 1)
Condition
Error in `initial_time_split()`:
! `prop` must be less than 1.
Code
group_initial_split(mtcars, group = "cyl", prop = 1)
Condition
Error in `group_initial_split()`:
! `prop` must be less than 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.