Checks if information is lost by rounding
This function takes a vector and checks if any information is lost by rounding to a certain number of digits.
is.round(x, digits = 0)
x |
A vector. |
digits |
How many digits to round to. |
Returns TRUE
if rounding to digits
digits after the decimal can be done without losing information.
is.round(1:5) x <- c(1, 1.2, 1.23) is.round(x) is.round(x,digits=2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.