plate: plate

View source: R/api_recipes.R

plateR Documentation

plate

Description

Get the results from the recipe. If the recipe hasn't been prepped and baked, this will do those steps and return the result.

Usage

plate(.rec, type = "dt", ...)

Arguments

.rec

the R6 recipe object.

type

the return type for the recipe (dt = 'data.table', df = 'data.frame', tbl = 'tibble', list = 'list', m = 'matrix')

...

additional arguments

Value

an updated recipe

Examples


dat <- data.frame(x = rnorm(10), y = rnorm(10))

rec <- recipe(y~x, data = dat) |>
       step_scale(x) |>
       prep() |>
       bake() |>
       plate()

rec <- recipe(y~x, data = dat) |>
       step_scale(x) |>
       plate()


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