Learn R Programming

pipeflow (version 0.2.2)

pipe_get_out: Get output of given step

Description

Get output of given step

Usage

pipe_get_out(pip, step)

Value

the output at the given step.

Arguments

pip

Pipeline object

step

string name of step

See Also

pipe_collect_out() to collect output of multiple steps.

Examples

Run this code
p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "add1", \(x = ~data) x + 1)
pipe_add(p, "add2", \(x = ~data, y = ~add1) x + y)
pipe_run(p)
pipe_get_out(p, "add1")
pipe_get_out(p, "add2")

Run the code above in your browser using DataLab