[R] read.table() and precision?
m_olshansky at yahoo.com
Tue Dec 18 05:06:35 CET 2007
If x is the result of your read.table, it is a double
precision number (matrix, data.frame, etc.), but by
default only up to 7 decimal digits of x are printed,
so you do not see the rest of x.
Try for example
and see how your x look then.
--- Wojciech Gryc <wojciech at gmail.com> wrote:
> I'm currently working with data that has values as
> large as 99,000,000
> but is accurate to 6 decimal places. Unfortunately,
> when I load the
> data using read.table(), it rounds everything to the
> nearest integer.
> Is there any way for me to preserve the information
> or work with
> arbitrarily large floating point numbers?
> Thank you,
> Five Minutes to Midnight:
> Youth on human rights and current affairs
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help