round2 {surveyplanning} | R Documentation |
The function rounds the values in its first argument to the specified number of decimal places (default 0).
round2(x, n)
x |
a numeric vector. |
n |
integer indicating the number of decimal places. |
Rounded value
expsize
, dom_optimal_allocation
dar <- 100 * runif(3)
dar
round2(dar, 1)