Learn R Programming

CME.assistant (version 1.1.4)

roundoff: A rounding function that round off numbers in the conventional way

Description

Instead of in R where 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