[R] read.table() and scientific notation

Martin C. Martin martin at martincmartin.com
Tue Oct 10 13:27:01 CEST 2006


I think the colClasses argument to read.table() is what you need. 
Either that, or explicitly cast columns in the data.frame that's 
returned by read.table().  That's how you get data types that aren't 
directly supported by read.table(), like various date formats.

- Martin

January Weiner wrote:
> Oh, thanks, that was hint enough :-) I see it now. I turns that R does
> not understand
> 
> e-10
> 
> ...which stands for 1e-10 and is produced by some of the bioinformatic
> applications that I use (notably BLAST). However, R instead of being
> verbose on that just assumes that the whole column is a string.
> 
> Is there a way to enforce a specific conversion in R (for example, to
> be able to see where the errors are?).
> 
> January
>



More information about the R-help mailing list