round_sas_pct: "Display Rounded Percentages Like SAS"

Description Usage Arguments Examples

View source: R/brdgr.R

Description

Round percentages like SAS and display the % sign.

Usage

1
round_sas_pct(x, digits = 0, by100 = TRUE)

Arguments

x

Numeric variable / value to round.

digits

Number of digits to display to the right of the decimal place.

by100

Multiply the numeric variable / value by 100.

Examples

1
2
3
round_sas_pct(0.55)
round_sas_pct(0.555, digits = 1)
round_sas_pct(55.5, by100 = FALSE)

mbrothe/brdgr documentation built on Feb. 25, 2021, 2:55 p.m.