Description Usage Arguments Value Examples
View source: R/add_table_right.R
Adds aggregation column to table
1 | add_table_right(ftable, ffun = sum, colname = "Result", fcols = NA)
|
ftable |
data.frame or data.table |
ffun |
aggregation function such as sum, mean, etc. Default value is sum. |
colname |
string. Default value is 'Result'. |
fcols |
vector. Column names to be included in the aggregation (only if numeric). Default value is NA, i.e. all columns are included. |
data.frame or data.table
1 | ## Not run: add_table_right(dt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.