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]]
_
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
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.
3 matches
Mail list logo