formatr: Format numbers

Description Usage Arguments Value Author(s) See Also Examples

View source: R/format.r.R

Description

Rounds a number x to k decimal places with a uniform representation (<0.001 for k=3) for all numbers that are not in the disabling area.

Usage

1
formatr(x, k = 3, cl.z = F)

Arguments

x

Number, which should be rounded.

k

Number of decimal places.

cl.z

Logical. Should a uniform representation be made for all numbers that are not in the display area?

Value

The rounded number is returned, maybe with uniform representation.

Author(s)

Lorenz Uhlmann, Csilla van Lunteren

See Also

f.r

Examples

1
2
3
4
5
## Not run: 
x<-c(0.1,0.01,0.001)
formatr(x, k=2, cl.z=T)

## End(Not run)

vanLunteren/DescrTab documentation built on May 4, 2019, 10:56 a.m.