xNum: Text Processing: Convert a Number to a Word

View source: R/xNum.R

xNumR Documentation

Text Processing: Convert a Number to a Word

Description

Converts a number to a word. Primarily for internal use in text processing of knitr output. Not usually referenced by the user.

Usage

  xNum(x) 

Arguments

x

The integer to convert.

Details

Input is an integer, or coerced to integer after rounding. For integers from 0 to 12, output is the single English word. For values larger than 12, or negative, the integer is just converted to character format.

Author(s)

David W. Gerbing (Portland State University; gerbing@pdx.edu)

Examples

xNum(5)

lessR documentation built on Nov. 12, 2023, 1:08 a.m.