Description Usage Arguments Value Examples
View source: R/add_table_bottom.R
Adds bottom aggregation row to table
1 | add_table_bottom(ftable, ffun = sum, fname = NA)
|
ftable |
data.frame or data.table |
ffun |
aggregation function such as sum, mean, etc. Default value is sum. |
fname |
named vector c(a='b'), where a is a column name in ftable and b the assigned cell name of the aggregation. E.g. fname = c(Object = 'Result'). Default value is NA. |
data.frame or data.table
1 | ## Not run: add_table_bottom(dt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.