[R] default print format for large numbers

SHANE MILLER, BLOOMBERG/ 731 LEXIN smiller53 at bloomberg.net
Wed Apr 8 16:15:53 CEST 2009


Numbers like ``1239178547.653775" is inserted into a vector. I print the vector:

> route_9_80_end
 [1] 1239178522 1239178526 1239178524 1239178524 1239178524 1239178523 1239178524 1239178522 1239178521 1239178565 1239178566 1239178566
[13] 1239178565 1239178566 1239178566 1239178565 1239178566 1239178566

and the decimals are suppressed. While R is wonderful and wonderfully documented, I can only find some quasi relavent information on options(digits) or some such as might apply here. How can I force R to print some part of the decimal i.e. back to 1239178547.653775?

TIA, Shane


More information about the R-help mailing list