0

I often use RStudio for a simple calculations, something like the following

> (3.456+4.008)*13000+1000000
[1] 1097032

And my question (rather stupid, I assume, but I haven't find an answer) is if it's possible to make the output more friendly? E.g.:

> (3.456+4.008)*13000+1000000
[1] 1'097'032
Uwe
  • 39,148
  • 11
  • 82
  • 123
A S
  • 1,108
  • 2
  • 11
  • 25

1 Answers1

0

At the prompt:

?format

As an example

format(12345.6789, digits=9, decimal.mark=",");
pmagunia
  • 1,608
  • 1
  • 21
  • 32