Re: [Rd] Scan data from a .txt file

2005-11-17 Thread Duncan Murdoch
On 11/17/2005 10:35 AM, Vasundhara Akkineni wrote: > Hi all, > Am trying to read data from a .txt file in such a way that i can access the > column names too. For example, the data in the table.txt file is as below: > Name Weight Height Gender > Anne 150 65 F > Rob 160 68 M > George 180 65 M > Gre

[Rd] Scan data from a .txt file

2005-11-17 Thread Vasundhara Akkineni
Hi all, Am trying to read data from a .txt file in such a way that i can access the column names too. For example, the data in the table.txt file is as below: Name Weight Height Gender Anne 150 65 F Rob 160 68 M George 180 65 M Greg 205 69 M i used the following commands: data<-scan("table.txt",