number_to_word: A function to convert number into words for RMarkdown

Description Usage Arguments

View source: R/number_to_word.R

Description

It is usually conventional that integers below 10 should be written in words instead of numbers. In RMarkdown, when writing results, the the output of the results, the user can put the numbers in the present function to convert it automatically into text. If the result to display is 2, then number_toword(2) will return "two".

Usage

1
number_to_word(number, cap = FALSE)

Arguments

number

Integer to convert into word

cap

If TRUE, the first letter of the word will be a capital. Default is FALSE


EricMenetre/NPL documentation built on June 23, 2021, 2:10 p.m.