Re: [R] RES: R help for read.table()

2010-01-20 Thread Gaurav Kumar
Hi Leonard, Thanks for your quick response. i tired using the sep=" " in read.table() function, but still can't access the first column. checked , str(file), showing the $V1 variable...but can't access the first column inside the loop. regards Gaurav Kumar www.gauravkumar.org PhD Student, Chem

[R] RES: R help for read.table()

2010-01-20 Thread Leandro Marino
Hi, You didnt put the parameter sep=' ' in the read.table. If you try to see str(file), i think you are going to see only one column. read.table("data.txt",header=FALSE,sep=' ') Atenciosamente, Leandro Lins Marino Centro de Avaliação Fundação CESGRANRIO Rua Santa Alexandrina, 1011 - 2º andar Rio