Learn R Programming

humanize (version 0.2.0)

count_as_word: Convert Large Counts into Friendly Text

Description

Note - currently limited to .Machine$integer.max.

Usage

count_as_word(value, fmt = "%.1f")

Arguments

value

A single positive integer

fmt

Extra number formatting supplied to sprintf

Value

Returns a string with the power of a number replaced by the appropriate word.

Examples

Run this code
# NOT RUN {
count_as_word(100)
count_as_word(1000000)
count_as_word(1200000000)
# }

Run the code above in your browser using DataLab