Skip to content

Help formating data to display commas

5 messages · Anderson, Chris, Henrique Dallazuanna

#
Try this:

gsub("\\s", "", format(upper, big.mark = ","))

On Thu, Jan 7, 2010 at 5:31 PM, Anderson, Chris
<chris.anderson at paradigmcorp.com> wrote:

  
    
#
When I try this all I get is NULL

Chris Anderson
Data Analyst
Medical Affairs
wk: 925-677-4870
cell: 707-315-8486
Fax:925-677-4670



-----Original Message-----
From: Henrique Dallazuanna [mailto:wwwhsd at gmail.com]
Sent: Thursday, January 07, 2010 11:45 AM
To: Anderson, Chris
Cc: r-help at R-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.anderson at paradigmcorp.com> wrote:
--
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O



This electronic message transmission, including any attachments, contains
information which may be confidential, privileged and/or otherwise exempt
from disclosure under applicable law. The information is intended to be for the
use of the individual(s) or entity named above. If you are not the intended
recipient or the employee or agent responsible for delivering the message
to the intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this information is strictly prohibited.  If
you have received this electronic transmission in error, please notify the sender
immediately by telephone (800-676-6777) or by a "reply to sender only"
message and destroy all electronic and hard copies of the communication,
including attachments.  Thank you.

For more information on Paradigm Management Services, LLC, please visit
http://www.paradigmcorp.com
#
I get this:

upper <- c(200000, 354658, 325145)
gsub("\\s", "", format(upper, big.mark = ","))
[1] "200,000" "354,658" "325,145"



On Thu, Jan 7, 2010 at 5:50 PM, Anderson, Chris
<chris.anderson at paradigmcorp.com> wrote:

  
    
#
I got it to work thanks

Chris Anderson
Data Analyst
Medical Affairs
wk: 925-677-4870
cell: 707-315-8486
Fax:925-677-4670



-----Original Message-----
From: Henrique Dallazuanna [mailto:wwwhsd at gmail.com]
Sent: Thursday, January 07, 2010 11:45 AM
To: Anderson, Chris
Cc: r-help at R-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.anderson at paradigmcorp.com> wrote:
--
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O



This electronic message transmission, including any attachments, contains
information which may be confidential, privileged and/or otherwise exempt
from disclosure under applicable law. The information is intended to be for the
use of the individual(s) or entity named above. If you are not the intended
recipient or the employee or agent responsible for delivering the message
to the intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this information is strictly prohibited.  If
you have received this electronic transmission in error, please notify the sender
immediately by telephone (800-676-6777) or by a "reply to sender only"
message and destroy all electronic and hard copies of the communication,
including attachments.  Thank you.

For more information on Paradigm Management Services, LLC, please visit
http://www.paradigmcorp.com