This function rounds values based on mathematical rules. That is, numbers
ending below 0.5 round down and numbers ending with 0.5 and greater round up.
Usage
round2(x, n)
Arguments
x
a numeric vector
n
number of decimal places
Value
The value returned is a numeric vector, x, rounded to n decimals
places.