roundoff: A rounding function that rounds off numbers in the...

View source: R/funcs_do_calculation.R

roundoffR Documentation

A rounding function that rounds off numbers in the conventional way: rounds 0.5 to 1

Description

Instead of in R by default round(0.5) = 0, roundoff(0.5, 0) = 1

Instead of in R by default round(0.5) = 0, roundoff(0.5, 0) = 1

Usage

roundoff(x, digits = 2)

roundoff(x, digits = 2)

Arguments

x

the number

digits

digits, default to 2

Value

rounded numeric vector

rounded numeric vector


unicef-drp/CME.assistant documentation built on Oct. 15, 2023, 7:08 p.m.