Description Usage Arguments Value Author(s)
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.
1 | first.lines(df, nrow = NULL)
|
df |
a dataframe |
nrow |
the count of rows to keep |
the same dataframe with nrow columns and additional "..."
Samuel Thiriot <samuel.thiriot@res-ear.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.