ellipses {Tmisc}R 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)


[Package Tmisc version 1.0.1 Index]