Learn R Programming

EQUALSTATS (version 0.5.0)

round_near: Rounds a Variable to the Nearest Pretty Number

Description

For some graphs, Base pretty function may not provide the correct rounding. This is a different algorithm suitable for the graphs produced in 'EQUAL-STATS' software.

Usage

round_near(x)

Value

A "pretty number" suitable for use in graphs.

Arguments

x

A numeric variable.

Author

Kurinchi Gurusamy

References

https://sites.google.com/view/equal-group/home

See Also

Examples

Run this code
x <- 7
round_near(x)

x <- 754
round_near(x)

Run the code above in your browser using DataLab