add_totals_col: Append a totals column to a data.frame.

Description Usage Arguments Value

View source: R/janitor_deprecated.R

Description

This function is deprecated, use adorn_totals instead.

Usage

1
add_totals_col(dat, na.rm = TRUE)

Arguments

dat

an input data.frame with at least one numeric column.

na.rm

should missing values (including NaN) be omitted from the calculations?

Value

Returns a data.frame with a totals column containing row-wise sums.


janitor documentation built on Jan. 5, 2021, 9:07 a.m.