Learn R Programming

pipeflow (version 0.2.2)

pipe_length: Length of the pipeline

Description

Length of the pipeline

Usage

pipe_length(pip)

Value

numeric length of pipeline, that is, the total number of steps

Arguments

pip

Pipeline object

Examples

Run this code
p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "f1", \(x = 1) x)
pipe_add(p, "f2", \(y = 1) y)
p
pipe_length(p)

Run the code above in your browser using DataLab