The function rounds the values in its first argument to the specified number of decimal places (default 0).
round2(x, n)
a numeric vector.
integer indicating the number of decimal places.
Rounded value
# NOT RUN {
dar <- 100 * runif(3)
dar
round2(dar, 1)
# }
Run the code above in your browser using DataLab