[R] Help formating data to display commas

2010-01-07 Thread Anderson, Chris
I'm using the following code to create quartile intervals of my dataset and it is working like it is suppose too. In my final output of the data I would like currency amounts to be displayed with commas. I have not found an option either through FormatC or sprintf that will display the data

Re: [R] Help formating data to display commas

2010-01-07 Thread Henrique Dallazuanna
-677-4870 cell: 707-315-8486 Fax:925-677-4670 -Original Message- From: Henrique Dallazuanna [mailto:www...@gmail.com] Sent: Thursday, January 07, 2010 11:45 AM To: Anderson, Chris Cc: r-help@R-project.org Subject: Re: [R] Help formating data to display commas Try this: gsub(\\s

Re: [R] Help formating data to display commas

2010-01-07 Thread Anderson, Chris
-project.org Subject: Re: [R] Help formating data to display commas Try this: gsub(\\s, , format(upper, big.mark = ,)) On Thu, Jan 7, 2010 at 5:31 PM, Anderson, Chris chris.ander...@paradigmcorp.com wrote: I'm using the following code to create quartile intervals of my dataset and it is working like