insight (version 0.11.0)

format_number: Convert number to words

Description

Convert number to words. The code has been adapted from here https://github.com/ateucher/useful_code/blob/master/R/numbers2words.r

Usage

format_number(x, textual = TRUE, ...)

Arguments

x

Number.

textual

Return words. If FALSE, will run format_value.

...

Arguments to be passed to format_value if textual is FALSE.

Value

A formatted string.

Examples

Run this code
# NOT RUN {
format_number(2)
format_number(45)
format_number(324.68765)
# }

Run the code above in your browser using DataLab