norm.round: Alternative to round

Description Usage Arguments Details

View source: R/norm.round.R

Description

An alternative round that deals with the fact that 0.5 rounds to either 0 or 1 , the round would always round to 1

Usage

1
norm.round(x, digits)

Arguments

x

the number/variable to round

digits

the number of digits to round to

Details

a different version of round, shamelessly stolen from here: https://stackoverflow.com/questions/12688717/round-up-from-5-in-r this deals with the fact that the standard version of round in r sometimes rounds 0.5 up and sometimes down, for good reasons but reasons that do not apply in some circumstances


dprocter/dpfuncs documentation built on May 21, 2019, 9:20 a.m.