mat_add_total_row | R Documentation |
Add either sum, or Total (if not numeric)
mat_add_total_row(df, fun = sum, total_name = "Total")
df |
the data-frame |
fun |
function, Defaults to sum |
total_name |
The name, default is "Total" |
data(iris)
iris$Species <- as.character(iris$Species)
mat_add_total_row(iris[1:5,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.