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 at 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.