pipe_length: Length of the pipeline

View source: R/aliases.R

pipe_lengthR Documentation

Length of the pipeline

Description

Length of the pipeline

Usage

pipe_length(pip)

Arguments

pip

Pipeline object

Value

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

Examples

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)

pipeflow documentation built on April 3, 2025, 10:50 p.m.