Re: [R] Converting numbers into words

2010-12-05 Thread Gabor Grothendieck
On Sun, Dec 5, 2010 at 11:50 AM, Thomas Levine wrote: > Example data > > desk=data.frame( > deskchoice=c('mid','mid','left','bookdrop','mid','bookdrop') > ) > > -- > > I like doing stuff like the line below, especially when I'm using Sweave. > > print(paste('Within the observation period,',nrow(de

[R] Converting numbers into words

2010-12-05 Thread Thomas Levine
Example data desk=data.frame( deskchoice=c('mid','mid','left','bookdrop','mid','bookdrop') ) -- I like doing stuff like the line below, especially when I'm using Sweave. print(paste('Within the observation period,',nrow(desk), 'patrons approached the circulation desk.')) -- But what if I wan