View source: R/janitor_deprecated.R
add_totals_row | R Documentation |
This function is deprecated, use adorn_totals
instead.
add_totals_row(dat, fill = "-", na.rm = TRUE)
dat |
an input data.frame with at least one numeric column. |
fill |
if there are more than one non-numeric columns, what string should fill the bottom row of those columns? |
na.rm |
should missing values (including NaN) be omitted from the calculations? |
Returns a data.frame with a totals row, consisting of "Total" in the first column and column sums in the others.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.