bake: bake

View source: R/api_recipes.R

bakeR Documentation

bake

Description

Evaluate the steps and store the recipe results

Usage

bake(.rec, data = NULL)

Arguments

.rec

the R6 recipe object.

data

an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm is called.

type

Value

an updated recipe

Examples

rec <- recipe(y~x, data = list(x = rnorm(10), y = rnorm(10))) |>
       step_scale(x) |>
       prep() |>
       bake()

jkennel/hydrorecipes documentation built on Dec. 24, 2024, 5:38 p.m.