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) <[EMAIL PROTECTED]> Fax-to-email: +44 (0)870 094 0861 Date: 17-Feb-07 Time: 00:39:37 ------------------------------ XFMail ------------------------------ ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.