formatting: Better number formatting

round_formatR Documentation

Better number formatting

Description

Round numbers without truncating trailing zeroes.

rounde() is a rounding function that rounds up when rounding off a 5, instead of to the nearest even number, which is what the base R function round() does.

Usage

round_format(x, digits)

rounde(x, digits = 0)

Arguments

x

A numeric vector.

digits

Number of significant significant digits to be used.

Author(s)

Sandy Floren

World Health Organization


saviclab/savictools documentation built on Dec. 7, 2023, 11:56 p.m.