[R] integer notation 1,000,000 instead of 1000000

Marc Schwartz MSchwartz at medanalytics.com
Sat Oct 18 18:19:00 CEST 2003


On Sat, 2003-10-18 at 10:57, alberts at iwi201.iwinet.rug.nl wrote:
> Hello,
> 
> How do I write one million as 1,000,000 instead of 1000000?
> (cannot find it)
> 
> regards, R. Alberts


formatC(1000000, format = "d", big.mark = ",")
[1] "1,000,000"

See ?formatC

HTH,

Marc Schwartz




More information about the R-help mailing list