Re: [R] format numbers using 1000 separator

From: Austin, Matt <maustin_at_amgen.com>
Date: Fri, 04 Apr 2008 16:42:23 -0700

> format(1000000000, big.mark=",", scientific=FALSE)
[1] "1,000,000,000"

--Matt

Matt Austin
Biostatistics Director
Amgen, Inc

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of tom soyer Sent: Friday, April 04, 2008 2:41 PM
To: r-help_at_r-project.org
Subject: [R] format numbers using 1000 separator

Hi,

Does anyone know how one could format numbers using 1000 separator in R? For example, format 1000 as 1,000 and 100000 as 100,000, etc.

Thanks,

--
Tom

        [[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 04 Apr 2008 - 23:48:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 Apr 2008 - 02:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive