Learn R Programming

StatDA (version 1.7.11)

roundpretty: Roundpretty

Description

Round a value in a pretty way.

Usage

roundpretty(kvec, maxdig)

Value

result

rounded value

Arguments

kvec

the variable to be rounded

maxdig

maximum number of digits after the coma

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

See Also

roundpretty.sub

Examples

Run this code
roundpretty(0.873463029,5)
roundpretty(0.073463029,5)
roundpretty(0.003463029,5)
roundpretty(0.000463029,5)

Run the code above in your browser using DataLab