powered by
Set data in first step of pipeline.
pipe_set_data(pip, data)
returns the Pipeline object invisibly
Pipeline
Pipeline object
initial data set.
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()
Run the code above in your browser using DataLab