Description Usage Arguments Value Author(s)
When we export a table, we sometimes want to truncate its columns so it can be entirely displayed and be readable. This function keeps the first ncol columns (such as can be done using df[1:ncol]), and adds as a last column "..." symbols to show the table was truncated. Notably used for exportation to LaTeX tables.
1 | first.columns(df, ncol = NULL)
|
df |
a dataframe |
ncol |
the count of columns to keep |
the same dataframe with ncol 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.