Nothing
Code
rp1 %>% check_cols(all_predictors()) %>% prep() %>% bake(mtcars[-1])
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `mpg`.
i These columns have one of the following roles, which are required at `bake()` time: `predictor`.
Code
rp2 %>% check_cols(cyl, mpg, drat) %>% prep() %>% bake(mtcars[, c(2, 5)])
Condition
Error in `bake()`:
x The following required columns are missing from `new_data`: `mpg`.
i These columns have one of the following roles, which are required at `bake()` time: `predictor`.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Check if the following columns are present:: <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
* Check if the following columns are present:: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Check if the following columns are present:: all_predictors()
Code
prep(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
* Check if the following columns are present:: cyl, disp, hp, ... | Trained
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.