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

--Matt

Matt Austin
Biostatistics Director
Amgen, Inc


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of tom soyer
Sent: Friday, April 04, 2008 2:41 PM
To: r-help@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@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@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.

Reply via email to