Learn R Programming

pillar (version 1.6.0)

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, ...)

Arguments

Examples

Run this code
# NOT RUN {
long_string <- list(paste(letters, collapse = " "))
squeeze(colonnade(long_string), width = 40)
squeeze(colonnade(long_string), width = 20)
# }

Run the code above in your browser using DataLab