[R] pb of importation data: truncation...

Douglas Bates bates at stat.wisc.edu
Mon Aug 11 18:47:40 CEST 2003

Pinaud David <puffin at cebc.cnrs.fr> writes:

> I'm  importing some data (with read.table, file ".txt") but I have some
> problem: R truncates my numeric data at 2 digits during the
> importation... It's the first time that I see that.

Are you sure that R is truncating the data itself or just truncating
the printed representation of the data?  The value that is printed is
truncated according to the setting of the "digits" option.

Use the dput function to check on the actual value that is stored.
For example

> pi
[1] 3.141593
> dput(pi)

More information about the R-help mailing list