Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

squeeze

Squeeze a colonnade to a fixed width


Description

The squeeze() function usually doesn't need to be called manually. It returns an object suitable for printing and formatting at a fixed width with additional information about omitted columns, which can be retrieved via extra_cols().

Usage

squeeze(x, width = NULL, ...)

Examples

long_string <- list(paste(letters, collapse = " "))
squeeze(colonnade(long_string), width = 40)
squeeze(colonnade(long_string), width = 20)

pillar

Coloured Formatting for Columns

v1.6.0
MIT + file LICENSE
Authors
Kirill Müller [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.