Code
prep(rec_1, training = iris %>% slice(1:75))
Condition
Error in `step_slice()`:
Caused by error in `dplyr::slice()`:
i In argument: `values`.
Caused by error:
! object 'values' not found
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Row filtering via position: <none>
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Training information
Training data contained 32 data points and no incomplete rows.
-- Operations
* Row filtering via position: | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Operations
* Row filtering via position: 1:2
Code
prep(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Training information
Training data contained 150 data points and no incomplete rows.
-- Operations
* Row filtering via position: 1:2 | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.