[R] Comma separators in r console output

Jan van der Laan rhe|p @end|ng |rom eoo@@dd@@n|
Mon Feb 21 15:23:21 CET 2022


See `format`, `formatC` or `prettyNum`. The last one is used by 
`format.default`.

For example

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

Is this what you are looking for?

Jan





On 21-02-2022 12:16, Charles Thuo wrote:
> Dear Sirs,
> 
> How are comma separators inserted in big figures appearing in r console
> outputs.
> 
> Charles
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list