summary.recipe | R Documentation |
This function prints the current set of variables/features and some of their characteristics.
## S3 method for class 'recipe'
summary(object, original = FALSE, ...)
object |
A |
original |
A logical: show the current set of variables or the original set when the recipe was defined. |
... |
further arguments passed to or from other methods (not currently used). |
Note that, until the recipe has been trained, the current and original variables are the same.
It is possible for variables to have multiple roles by adding them with
add_role()
. If a variable has multiple roles, it will have more than one
row in the summary tibble.
A tibble with columns variable
, type
, role
,
and source
. When original = TRUE
, an additional column is included
named required_to_bake
(based on the results of
update_role_requirements()
).
recipe()
prep()
rec <- recipe(~., data = USArrests)
summary(rec)
rec <- step_pca(rec, all_numeric(), num_comp = 3)
summary(rec) # still the same since not yet trained
rec <- prep(rec, training = USArrests)
summary(rec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.