pipe_set_data {pipeflow} | R Documentation |
Set data
Description
Set data in first step of pipeline.
Usage
pipe_set_data(pip, data)
Arguments
pip |
|
data |
initial data set. |
Value
returns the Pipeline
object invisibly
Examples
p <- pipe_new("pipe", data = 1)
pipe_add(p, "add1", \(x = ~data, y = 1) x + y, keepOut = TRUE)
p |> pipe_run() |> pipe_collect_out()
pipe_set_data(p, 3)
p |> pipe_run() |> pipe_collect_out()
[Package pipeflow version 0.2.2 Index]