[R] reading text file not table

H. Paul Benton hpbenton at scripps.edu
Sat Feb 17 01:26:06 CET 2007


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

-- 
Research Technician
Mass Spectrometry
   o The
  /
o Scripps
  \
   o Research
  /
o Institute



More information about the R-help mailing list