Learn R Programming

memuse (version 2.5)

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.

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")
# ## End(Not run)

Run the code above in your browser using DataLab