[R] 1.095e+09 for integers

Alexy Khrabrov deliverable at gmail.com
Mon Feb 23 05:42:06 CET 2009


I've had a very long file written out by R with write.table, with  
fields of time values, converted from POSIXlt as.numeric.  Among 2.5  
million values, very few had 6 trailing zeroes, and those were output  
in scientific notation as in the subject.  Is this the default  
behavior for long integers, and how can it be turned off (with all  
digits for any integer field in write.table)?  This is important to  
interoperate with other languages through such text dumps, as some do  
not expect scientific notation for integers, only for floats.

Cheers,
Alexy




More information about the R-help mailing list