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

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

Usage

roundoff(x, digits = 2)

Arguments

x

the number

digits

digits, default to 2

Value

rounded numeric vector


unicef-drp/CME.assistant documentation built on July 9, 2024, 8:34 p.m.