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

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

>>>>> "January" == January Weiner <january@uni-muenster.de> 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.