Re: [R] read.table() and scientific notation

From: mmiller3 <>
Date: Wed 11 Oct 2006 - 13:42:32 GMT

>>>>> "January" == January Weiner <> writes:

> Dear all, I am having troubles importing values written as
> scientific notation using read.table(). I'm sure this is a
> frequent problem, as many people in my lab have this
> problem as well, so I'm sure that I just have troubles
> googling for the right solution.

> The problem is, that, given a file like that:

> a 1 2e-4
> b 2 3e-8
> ...

Note: this is advocacy for education in clear quantitative language and is a border-line off topic rant...

The other day I read a paper from a student who used notation like 2e-4 in the text - blech! I sent it back for revisions. Lately I have noticed here and in other places this tendency to use floating point notation (also referred to as exponential notation) where scientific notation is appropriate, and vice versa. The notation 2e-4 is a convenient way to express floating point numbers with a simple text string, but it is certainly not scientific notation. No wonder you had trouble googling it!

Mike mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 11 23:46:06 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 11 Oct 2006 - 15:00:09 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.