[R] read.table and decimals

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Apr 22 18:47:39 CEST 2003


Kris Nackaerts wrote:
> Dear,
> 
> We are trying to read an asciifile using the read.table() function and 
> discovered that only 4 decimals are read. Any idea how to get more 
> decimals?

It reads *all* decimals, if the format is specified correctly.
I guess you printed the read in data in an inappropriate way to see full 
accuracy.

Try to print it with
   format(x, digits=22)
and see that everythinbg was read in ....

Uwe Ligges



More information about the R-help mailing list