first.lines: Returns the first n rows of a dataframe and adds ...

Description Usage Arguments Value Author(s)

Description

When we export a table, we sometimes want to truncate its rows so it can be entirely displayed and be readable. This function keeps the first nrow rows (such as can be done using df[1:nrow,]), and adds as a last row "..." symbols to show the table was truncated. Notably used for exportation to LaTeX tables.

Usage

1

Arguments

df

a dataframe

nrow

the count of rows to keep

Value

the same dataframe with nrow columns and additional "..."

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.