recipe | R Documentation |
Create a new recipe object.
recipe(formula, data, ...)
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. |
A new R6 'Recipe' object.
dat <- data.frame(x = rnorm(10), y = rnorm(10))
rec <- recipe(y~x, data = dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.