pSee: Print and Return an Object in a Pipe

View source: R/CodeAndRoll2.R

pSeeR Documentation

Print and Return an Object in a Pipe

Description

Prints the input object and returns it, enabling you to inspect values inside a pipe.

Usage

pSee(x, max_elements = 100)

Arguments

x

The object to print and return. Default: None.

Value

The input object x, unchanged.

Examples

results <- c(1, 2, 3) %>% pSee() %>% sqrt() %>% tail(2) ; results

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