Description Usage Arguments Value Author(s)
Add rows or columns summaries (sums or means) to a dataframe.
1 |
x |
Dataframe. Data to which you wish to add the totals |
rows |
Logical. Whether totals should be added at the bottom of the table. |
columns |
Logical. Whether totals should be added at the right-side of the table. |
omit_col |
Character vector. Names of the variables not to be included in the total (for instance containing the id of the observation). |
summary |
Character. Whether the reported statistic should be a "sum" or a "mean". |
Tibble with the summary statistics added as a column or a row.
Nicolas Mangin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.