num_to_text {verbaliseR} | R Documentation |
Spell out numbers if they are smaller than ten
Description
Spell out numbers if they are smaller than ten
Usage
num_to_text(
number,
sentence_start = FALSE,
zero_or_no = "no",
uk_or_us = "UK",
big_mark = ","
)
Arguments
number |
Whole number as |
sentence_start |
Logical. If |
zero_or_no |
Specify what to print when the number is 0. Defaults to "no". Can be any string. |
uk_or_us |
Defaults to UK which adds an "and" between "hundred" and other numbers (e.g. "One hundred and five"). If "US" is chosen, the "and" is removed (e.g. "One hundred five"). |
big_mark |
Defaults to "," (e.g. "1,999"). |
Value
A string
Examples
num_to_text(3)
num_to_text(333, sentence_start = TRUE)
[Package verbaliseR version 0.1 Index]