add_totals_row: Append a totals row to a data.frame.

Description Usage Arguments Value

View source: R/add_totals.R

Description

This function is deprecated, use adorn_totals instead.

Usage

1
add_totals_row(dat, fill = "-", na.rm = TRUE)

Arguments

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?

Value

Returns a data.frame with a totals row, consisting of "Total" in the first column and column sums in the others.


janitor documentation built on May 29, 2017, 9:41 a.m.

Search within the janitor package
Search all R packages, documentation and source code