recipe: Create a new R6 recipe. This is analogous to the the list...

View source: R/api_recipes.R

recipeR Documentation

Create a new R6 recipe. This is analogous to the the list structure that the *recipes* package uses.

Description

Create a new recipe object.

Usage

recipe(formula, data, ...)

Arguments

formula

The model formula. It cannot contain operations.

data

list, data.frame, data.table, tibble of data. They will all be treated as lists.

...

additional arguments to pass to Recipe$new(). This is currently not used.

Value

A new R6 'Recipe' object.

Examples

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

rec <- recipe(y~x, data = dat)


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