round_sas: "SAS Rounding in R"

Description Usage Arguments Examples

View source: R/brdgr.R

Description

Round in R Like SAS: "Banker's Rounding"

Usage

1
round_sas(x, digits = 0)

Arguments

x

Numeric variable / value to round.

digits

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

Examples

1
2
round_sas(2.5)
round_sas(2.55, digits = 1)

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