Code
iris_rec %>% step_mutate_at() %>% prep(training = iris) %>% bake(new_data = NULL,
composition = "data.frame")
Condition
Error in `step_mutate_at()`:
! Argument `fn` must be specified.
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Variable mutation for: <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
* Variable mutation for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Operations
* Variable mutation for: contains("Sepal")
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
* Variable mutation for: Sepal.Length and Sepal.Width | Trained
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.