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

View source: R/janitor_deprecated.R

add_totals_colR Documentation

Append a totals column to a data.frame.

Description

This function is deprecated, use adorn_totals(where = "col") instead.

Usage

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.


sfirke/janitor documentation built on Sept. 18, 2024, 1:54 p.m.