Skip to content
Prev 243964 / 398506 Next

Converting numbers into words

On Sun, Dec 5, 2010 at 11:50 AM, Thomas Levine <thomas.levine at gmail.com> wrote:
Using John Fox's numbers2words found here:

   http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html

and capwords found in the examples section of ?toupper try this:

   n <- sum(desk$deskchoice == "bookdrop")
   paste(capwords(numbers2words(n)), if (n == 1) "person" else
"people", "used the book drop...")