stat_totals: Add totals (sums or means) to a dataset.

Description Usage Arguments Value

View source: R/stat_totals.R

Description

Add totals (sums or means) to a dataset.

Usage

1
2
stat_totals(x, rows = TRUE, columns = TRUE, omit_col = NA,
  summary = "sum")

Arguments

x

Data.frame. Data to which you wish to add the totals

rows

Logical. Whether totals should be added at the bottom of the table.

columns

Logical. Whether totals should be added at the right-side of the table.

omit_col

Character vector. Names of the variables not to be included in the total.

summary

Character. Whether the total is a "sum" or a "mean".

Value

Character vector with coefficients formatted for publication.


NicolasJBM/writer documentation built on Aug. 12, 2019, 2:36 p.m.