Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_totals_col

Append a totals column to a data.frame.


Description

This function is deprecated, use adorn_totals 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.


janitor

Simple Tools for Examining and Cleaning Dirty Data

v2.1.0
MIT + file LICENSE
Authors
Sam Firke [aut, cre], Bill Denney [ctb], Chris Haid [ctb], Ryan Knight [ctb], Malte Grosser [ctb], Jonathan Zadra [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.