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 so
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,
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
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
3 matches
Mail list logo