[R] R numeric string problem

2009-08-12 Thread Andrew C
Hi, I have a text (.dat) file, in which each row contains several long numeric strings. One of the strings is 38 digits long, for example: 03200801200801172008011720092904008901 When I read in the data file, this string shows up as 3.200801e+36. To get rid of the scientific notation, I used

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 acarr...@gmail.com wrote: Hi, I

Re: [R] R numeric string problem

2009-08-12 Thread Bert Gunter
: Wednesday, August 12, 2009 9:44 AM To: r-help@r-project.org Subject: [R] R numeric string problem Hi, I have a text (.dat) file, in which each row contains several long numeric strings. One of the strings is 38 digits long, for example: 03200801200801172008011720092904008901 When I read