round2: Rounding numbers

Description Usage Arguments Value See Also Examples

View source: R/round2.R

Description

The function rounds the values in its first argument to the specified number of decimal places (default 0).

Usage

1
round2(x, n)

Arguments

x

a numeric vector.

n

integer indicating the number of decimal places.

Value

Rounded value

See Also

expsize, dom_optimal_allocation

Examples

1
2
3
dar <- 100 * runif(3)
dar
round2(dar, 1)

surveyplanning documentation built on July 1, 2020, 10:38 p.m.