print.data.frame: Improved print.data.frame

Description Usage Arguments Details Examples

View source: R/misc.R

Description

This function improves readability of printing data.frame (avoids filling your console with clutter). Also displays number of rows and columns.

Usage

1
2
3
## S3 method for class 'data.frame'
print(x, ..., all.rows = FALSE, max.rows = 30,
  all.cols = FALSE, max.cols = 15)

Arguments

x

[data.frame]

...

optional arguments of base::print.data.frame

all.rows

[logical] If TRUE, print out all rows.

max.rows

[integer] Threshold for number of rows that are printed out.

all.cols

[logical] If TRUE, print out all columns.

max.cols

[integer] Threshold for number of columns that are printed out.

Details

If the number of rows of a data.frame exceeds max.rows only head and tail of the data.frame is printed. Also does not print out all columns if there are more than max.cols. Function can break if columns contain long strings.

Examples

1
2
3

BodoBurger/bodomisc documentation built on May 27, 2020, 5:12 p.m.