[R] problem with reading data files with different numbers of lines to skips

2007-08-02 Thread Tom Cohen
Dear List, I have 30 data files with different numbers of lines (31 and 33) that I want to skip before reading the files. If I use the skip option I can only choose either to skip 31 or 33 lines. The data files with 31 lines have no blank rows between the lines and the header row. How

Re: [R] problem with reading data files with different numbers of lines to skips

2007-08-02 Thread Ross Darnell
You could read the file and test each line (try readline()) but you need some rule to distinguish between text lines and data lines. You could then reread the file with the number of skip lines defined. Ross Darnell -Original Message- From: [EMAIL PROTECTED] on behalf of Tom Cohen

Re: [R] problem with reading data files with different numbers of lines to skips

2007-08-02 Thread Gabor Grothendieck
See: http://tolstoy.newcastle.edu.au/R/help/03b/6094.html On 8/2/07, Tom Cohen [EMAIL PROTECTED] wrote: Dear List, I have 30 data files with different numbers of lines (31 and 33) that I want to skip before reading the files. If I use the skip option I can only choose either to skip 31