Learn R Programming

Tmisc (version 1.0.1)

ellipses: 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)

Value

A data frame truncated by a row of ellipses.

Arguments

df

A data.frame.

n

The number of rows to show before an ellipses row.

Examples

Run this code
if (FALSE) {
ellipses(mtcars, 5)
}

Run the code above in your browser using DataLab