Skip to contents

Update the vaules of a specific recipe step located by id

Usage

update_step(object, target_id, ...)

Arguments

object

A recipe or a workflow object with a recipe

target_id

The id name of the step

...

The arguments to update the step.

Examples

recipes::recipe(spray ~ ., data = InsectSprays) |>
  recipes::step_ns(count, deg_free = hardhat::tune(), id = "ns") |>
  update_step("ns", deg_free = 1)
#> 
#> ── Recipe ──────────────────────────────────────────────────────────────────────
#> 
#> ── Inputs 
#> Number of variables by role
#> outcome:   1
#> predictor: 1
#> 
#> ── Operations 
#>  Natural splines on: count