| synth_spec_recipes_api | R Documentation |
synth_spec objectAdd, update, or remove recipe recipes from a synth_spec object
add_custom_steps(synth_spec, ...)
update_custom_steps(synth_spec, ...)
remove_custom_steps(synth_spec)
synth_spec |
A |
... |
Optional named arguments mapping variables to lists of
|
A new synth_spec object.
A new synth_spec object with added custom steps.
A new synth_spec object with updated custom steps.
A new synth_spec object with removed custom steps.
synth_spec <- synth_spec()
step1 <- function(x) {
x |> recipes::step_center(recipes::all_predictors(), id = "center")
}
add_custom_steps(
synth_spec = synth_spec,
list("vars" = c("a", "b", "c"), "steps" = step1)
)
synth_spec <- synth_spec()
step1 <- function(x) {
x |> recipes::step_center(recipes::all_predictors(), id = "center")
}
update_custom_steps(
synth_spec = synth_spec,
list("vars" = c("a", "b", "c"), "steps" = step1)
)
synth_spec <- synth_spec()
step1 <- function(x) {
x |> recipes::step_center(recipes::all_predictors(), id = "center")
}
synth_spec <- add_custom_steps(
synth_spec = synth_spec,
list("vars" = c("a", "b", "c"), "steps" = step1)
)
remove_custom_steps(synth_spec = synth_spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.