round2: Improved rounding function

round2R Documentation

Improved rounding function

Description

Improved rounding function

Usage

round2(x, n = 0)

Arguments

x

values to be rounded

n

number of digits

Value

numeric

Examples

# round a decimal
round2(12345.6789, 2)

# round large numbers
round2(12345.6789, -2)

PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.