Description Usage Arguments Value Examples
Recipe Target
1 2 3 4 5 6 7 8 9 10 11 12 13 | tar_recipe(name, x, ...)
## Default S3 method:
tar_recipe(name, x, ...)
## S3 method for class 'data.frame'
tar_recipe(name, x, formula = NULL, ..., tar_args = list())
## S3 method for class 'formula'
tar_recipe(name, formula, data, ..., tar_args = list())
## S3 method for class 'matrix'
tar_recipe(name, x, ..., tar_args = list())
|
name |
Name of target |
x |
A data frame or tibble of the template data set (see below). |
... |
Additional functions that the recipe is passed to, i.e. recipe step functions. |
formula |
A model formula. No in-line functions should be used here
(e.g. |
tar_args |
Arguments passed to |
data |
A data frame or tibble of the template data set (see below). |
A tar_target
object.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Basic recipe
tar_recipe(
make_recipe,
x = mtcars,
formula = mpg ~ .,
step_dummy(gear, carb),
tar_args = list(format = "qs")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.