View source: R/recipe_scale_center.R
recipe_scale_center | R Documentation |
Creates a recipe by scaling and centering the given data, and creates a model using the given formula.
recipe_scale_center(dataframe, formula)
dataframe |
A data frame or a tibble of the data. |
formula |
The formula used to create the model (eg: target ~ predictor). |
A tidymodel recipe, specifying inputs, outputs, and steps (scaling and centering) applied to all predictors.
recipe_scale_center(mtcars, mpg ~ hp) recipe_scale_center(mtcars, mpg ~ hp + cyl) recipe_scale_center(mtcars, mpg ~ .)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.