pLength: Print Length and Return an Object in a Pipe

View source: R/CodeAndRoll2.R

pLengthR Documentation

Print Length and Return an Object in a Pipe

Description

Prints the length of the input object and returns it, allowing you to verify length inside a pipe operation.

Usage

pLength(x)

Arguments

x

The object whose length to print and return. Default: None.

Value

The input object x, unchanged.

Examples

results <- c(9:1) %>% tail(4) %>% pLength() %>% sqrt() ; results

vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.