[R] Why is format(10000, big.mark = "\\,") not 10\,000?
ligges at statistik.tu-dortmund.de
Thu Dec 30 19:46:26 CET 2010
Actually I expected
format(10000, big.mark = "\\\\,")
to work (you need to double excape the backslashes here).
But the two characters are reversed due to the code in prettyNum(). Not
sure if it is expected, but the user was probably not expected to use
more than a single character as the big.mark.
You can get it right by reversing as in:
format(10000, big.mark = ",\\\\")
On 30.12.2010 19:32, Marius Hofert wrote:
> why does format(10000, big.mark = "\\,") not give me "10\,000"? How can I get this kind of "big.mark"?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help