rprop_table: Express a prop_table in percentages

Description Usage Arguments

View source: R/rrR.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. to allow for piping, in a way similar to wtable(), the margin argument here must be named as well.

Usage

1
rprop_table(..., margin = 0, digits = 1)

Arguments

...

arguments to be passed to methods.

margin

index to generate margin for

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 April 12, 2021, 5:28 a.m.