Re: [R] problem in reading file

2011-11-28 Thread chakri
Thank you very much. Yes, i figured it out; number of columns has to specified to solve this. -- View this message in context: http://r.789695.n4.nabble.com/problem-in-reading-file-tp4114955p4115357.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] problem in reading file

2011-11-28 Thread jim holtman
The basic problem is that read.table reads the first 5 lines to determine the number of columns to process, so when reading 'six' it reads up to 0.303 and then on the next read, it assumes that the '0' at the end of line 'six' is the rownames for the next row. Same thing happens with the rest of t

[R] problem in reading file

2011-11-28 Thread chakri
Hi, I have a file that looks like this : one,0 two,0.591,0 three,0.356,0.350,0 four,-0.098,0.072,0.380,0 five,0.573,0.408,0.382,0.062,0 six,0.156,0.232,0.517,0.424,0.303,0 seven,0.400,0.414,0.611,0.320,0.401,0.479,0 eight,0.282,0.375,0.512,0.346,0.308,0.463,0.605,0 nine,0.519,0.484,0.467,0.167,0.