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 June 3, 2024, 4:26 a.m.