Learn R Programming

smint (version 0.4.2)

round_levels: Round a vector (of levels)

Description

Round a vector (of levels).

Usage

round_levels(x)

Arguments

x
Numeric vector to be rounded.

Value

Rounded numeric vector.

Examples

Run this code
## good
round_levels((1:3) / 10^5)
round_levels( 10 + (1:3) / 10^5)
## bad
round_levels( 10 + (1:3) / 10^6)

Run the code above in your browser using DataLab