rprop_table: A shortcut for prop_table that displays values as percentages...

Description Usage Arguments

View source: R/diffr.R

Description

A shortcut for prop_table that displays values as percentages and rounds them. For example, rprop_table(var, 1) is equivalent to round(prop_table(var)*100, 1).

To avoid confusion with the margin argument in prop_table, the digits argument here must be named.

Usage

1
rprop_table(..., digits = 1)

Arguments

...

arguments to be passed to methods.

digits

integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed (see ‘Details’).


graiffgarcia/rrR documentation built on Feb. 12, 2020, 10:34 a.m.