Code
prep(rec, training = iris %>% slice(1:75))
Condition
Error in `step_rename_at()`:
Caused by error in `dplyr::rename_at()`:
! `.funs` must contain one renaming function, not 2.
Code
iris_rec %>% step_rename_at() %>% prep(training = iris) %>% bake(new_data = NULL,
composition = "data.frame")
Condition
Error in `step_rename_at()`:
! Argument `fn` must be specified.
Code
iris_rec %>% step_rename_at(fn = ":=O") %>% prep(training = iris) %>% bake(
new_data = NULL, composition = "data.frame")
Condition
Error in `step_rename_at()`:
Caused by error in `get()`:
! object ':=O' of mode 'function' was not found
Code
rec
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
outcome: 1
predictor: 10
-- Operations
* Variable renaming 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 renaming for: <none> | Trained
Code
print(rec)
Message
-- Recipe ----------------------------------------------------------------------
-- Inputs
Number of variables by role
predictor: 5
-- Operations
* Variable renaming 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 renaming 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.