A function that rounds positive numbers up when the last digit
is a 5. For negative numbers ending in 5, the function actually rounds down.
"Round away from zero" is the most accurate description of this function.
Usage
roundup(x, digits = 0)
Value
The rounded data vector.
Arguments
x
A vector of values to round. Also accepts a data frame. In the
case of a data frame, the function will round all numeric columns.
digits
A number of decimal places to round to. Default is zero.