From 55f93c9815b5711ffc2d4a5333ece99059eb3d40 Mon Sep 17 00:00:00 2001 From: Sam Firke Date: Sat, 18 Mar 2017 23:06:45 -0400 Subject: [PATCH] minor tweaks for add_totals function --- NEWS.md | 1 + man/add_totals.Rd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 18002768..38dbae95 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,7 @@ NEWS ## Breaking changes * The first argument of `adorn_crosstab()` is now "dat" instead of "crosstab" (since the function can be called on any data.frame, not just a result of `crosstab()`) +* The functions `add_totals_row` and `add_totals_col` were combined into a single function, `add_totals()`. [(#57)](https://github.com/sfirke/janitor/issues/57) ## Features diff --git a/man/add_totals.Rd b/man/add_totals.Rd index 99616717..5185107d 100644 --- a/man/add_totals.Rd +++ b/man/add_totals.Rd @@ -25,5 +25,5 @@ This function excludes other non-numeric columns. library(dplyr) # for the \%>\% pipe mtcars \%>\% crosstab(am, cyl) \%>\% - add_totals_row + add_totals() }