Learn R Programming

memuse (version 3.0-1)

approx.size: approx.size

Description

Approximate size of an integer; a poor man's exponential notation.

Usage

approx.size(x, unit.names = "long", ..., digits = 1)

Arguments

x

A number.

unit.names

"long", "short", or "comma"; determines wheter the output reads like "10 million", "10m", or "10,000,000", respectively.

...

Additional arguments

digits

The number of decimal digits to retain.

Value

An object of class approx.

Details

A simple printing system to make numbers readable.

See Also

howmany

Examples

Run this code
# NOT RUN {
library(memuse)

approx.size(12345678)
approx.size(12345678, unit.names="comma")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab