ellipses: Truncate a data frame with ellipses.

View source: R/utils.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

ellipses(mtcars, 5)


stephenturner/Tmisc documentation built on April 21, 2024, 8:31 a.m.