ellipses: Truncate a data frame with ellipses.

View source: R/utils-tables.R

ellipsesR Documentation

Truncate a data frame with ellipses.

Description

Prints the specified number of rows of a data frame, followed by a row of ellipses. Useful for piping to knitr::kable() for printing a truncated table in a markdown document.

Usage

ellipses(df, n = 5L)

Arguments

df

A data.frame.

n

The number of rows to show before an ellipses row.

Value

A data frame truncated by a row of ellipses.

Examples

## Not run: 
ellipses(mtcars, 5)

## End(Not run)


Tmisc documentation built on Aug. 23, 2023, 1:07 a.m.