round2: Round half up

Description Usage Arguments

View source: R/round2.R

Description

R's default round() function does banker's rounding. This round2 function rounds a number half up.

Usage

1
round2(x, digits = 0)

Arguments

x

number

digits

numeric; a number specifying the number of digits to round to.


MHS-R/mhs documentation built on May 25, 2019, 12:23 p.m.