[R] reading text file not table

(Ted Harding) ted.harding at nessie.mcc.ac.uk
Sat Feb 17 01:39:41 CET 2007


On 17-Feb-07 H. Paul Benton wrote:
> Hello all,
> 
> I'm looking for a way to be able to read a text file into R.
> It's a csv file but when I do
> "txt <-read.table("F00.csv", header=T, sep=",")"
> It doesn't read the file properly, and I only get 2 columns.
> If I open it up in OOc or Excel it open right with 7 columns.
> What I would really like to do is read the file as text and
> then split it and read the bottom section where the 7 columns are.
> Then I would re-read the table with read.table.
> 
>     Thank you for any help,
> 
>     Paul

What's wrong with using read.csv? (Or have I misunderstood
your query?)

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 17-Feb-07                                       Time: 00:39:37
------------------------------ XFMail ------------------------------



More information about the R-help mailing list