Re: [R] format numbers using 1000 separator

2008-04-04 Thread Austin, Matt
o: 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 10 as 100,000, etc. Thanks, -- Tom [[alternative HTML version deleted]] _

Re: [R] format numbers using 1000 separator

2008-04-04 Thread Peter Dalgaard
tom soyer wrote: > Hi, > > Does anyone know how one could format numbers using 1000 separator in R? For > example, format 1000 as 1,000 and 10 as 100,000, etc. > > Thanks, You're at the mercy of the system sprintf, but on Fedora, this works: > Sys.setlocale("LC_NUMERIC","da_DK.UTF-8") [1] "da

[R] format numbers using 1000 separator

2008-04-04 Thread tom soyer
Hi, Does anyone know how one could format numbers using 1000 separator in R? For example, format 1000 as 1,000 and 10 as 100,000, etc. Thanks, -- Tom [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.