pipe_pop_step {pipeflow} | R Documentation |
Pop steps from the pipeline
Description
Use this function to drop steps from the end of the pipeline.
Usage
pipe_pop_step(pip)
pipe_pop_steps_after(pip, step)
pipe_pop_steps_from(pip, step)
Arguments
pip |
|
step |
|
Value
string
the name of the step that was removed
Methods
-
pipe_pop_step
: drop last step from the pipeline -
pipe_pop_steps_after
: drop all steps after given steps -
pipe_pop_steps_from
: drop all steps from and including given steps
Examples
# pipe_pop_step
p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "f1", \(x = 1) x)
pipe_add(p, "f2", \(y = 1) y)
p
pipe_pop_step(p)
p
# pipe_pop_steps_after
pipe_add(p, "f2", \(y = 1) y)
pipe_add(p, "f3", \(z = 1) z)
p
pipe_pop_steps_after(p, "f1")
p
# pipe_pop_steps_from
pipe_add(p, "f2", \(y = 1) y)
pipe_add(p, "f3", \(z = 1) z)
p
pipe_pop_steps_from(p, "f1")
p
[Package pipeflow version 0.2.2 Index]