Re: [R] R numeric string problem

2009-08-12 Thread Bert Gunter
You need to read up about finite precision arithmetic and floating point representation. In brief, note that 2^64 requires 20 decimal digits, and some bits in double precision must be given up to sign, exponent, etc. leaving 53 bits for precision = 16 decimal digits. This is exactly the number of d

Re: [R] R numeric string problem

2009-08-12 Thread Henrique Dallazuanna
Use colClasses argument in read.table to set the class of column: For a file with two columns, where the first is string and the other is numeric: read.table('your_file.dat', colClasses = c('character', 'numeric')) On Wed, Aug 12, 2009 at 1:43 PM, Andrew C wrote: > > Hi, > > I have a text (.da