pipe_clone {pipeflow} | R Documentation |
Clone pipeline
Description
Creates a copy of a pipeline object.
Usage
pipe_clone(pip, deep = FALSE)
Arguments
pip |
|
deep |
|
Value
returns the copied Pipeline
object
Examples
p1 <- pipe_new("pipe")
pipe_add(p1, "step1", \(x = 1) x)
p2 <- pipe_clone(p1)
pipe_add(p2, "step2", \(y = 1) y)
p1
p2
[Package pipeflow version 0.2.2 Index]