pipe_set_data | R Documentation |
Set data in first step of pipeline.
pipe_set_data(pip, data)
pip |
|
data |
initial data set. |
returns the Pipeline
object invisibly
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.