| pip_has_step | R Documentation |
Check whether a step exists
pip_has_step(x, step)
x |
A pipeflow pip |
step |
A step name |
Logical indicating if the step exists
p <- pip_new() |>
pip_add("load", \(x = 1) x) |>
pip_add("fit", \(x = ~load) x + 1)
pip_has_step(p, "load") # TRUE
pip_has_step(p, "fit") # TRUE
pip_has_step(p, "predict") # FALSE — step not yet added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.