[R] comma separated format

2010-11-11 Thread sachinthaka . abeywardana
Hi All, I'm trying to create labels to plot such that it doesn't show up as scientific notation. So for example how do I get R to show 1e06 as $1,000,000. I was wondering if there was a single function which allows you to do that, the same way that as.Date() allows you to show in date format on

Re: [R] comma separated format

2010-11-11 Thread jim holtman
Is this what you want: paste($, format(1e6, big.mark = ',', format = 'f'), sep='') [1] $1,000,000 On Thu, Nov 11, 2010 at 5:51 PM, sachinthaka.abeyward...@allianz.com.au wrote: Hi All, I'm trying to create labels to plot such that it doesn't show up as scientific notation. So for example

Re: [R] comma separated format

2010-11-11 Thread David Winsemius
On Nov 11, 2010, at 5:51 PM, sachinthaka.abeyward...@allianz.com.au wrote: Hi All, I'm trying to create labels to plot such that it doesn't show up as scientific notation. So for example how do I get R to show 1e06 as $1,000,000. Knowing how these things usually have even more compact