[R] problems with read.table

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Feb 15 08:48:49 CET 2002


On Thu, 14 Feb 2002, [iso-8859-1] andrés sendra wrote:

> When I read a CSV file with containing two real variables with six decimal
> places, "read.table" converts it in a data frame where the numbers are only
> two decimal places.
> Can anybody explain me what should I do to correct this problem?
> Thanks in advance
> Juan Pablo

Give us an example, with full details of your R system?

It seems quite possible that the result has six dp but is being printed to
two dp: I can see no way that read.table (more precisely, type.convert that
it calls) could drop figures (except to stay within the computer accuracy,
but then you would have had trouble writing the cvs file).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list