Skip to contents

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)