Round up from .5
round2(x, digits = 0)
A vector of numeric values.
Integer indicating the number of decimal places (`round`) or significant digits (`signif`) to be used.
A vector of rounded numeric values.
Implements rounding using the "round up from .5" rule,
which is more conventional than the "round to even" rule
implemented by R's built-in round
function. This
implementation was taken from
https://stackoverflow.com/a/12688836.