[R] how to skip out and go on read while the read.table meet with a null file

2012-06-11 Thread Jie Tang
hi ,R users I read a series of file by the command shown as below. cop_x_data-read.table(flnm,skip=2) the first two line of the files are headfile and I skip them. and sometimes the original data file is null and there is no any data in the file except for the head information. At this

Re: [R] how to skip out and go on read while the read.table meet with a null file

2012-06-11 Thread David Winsemius
On Jun 11, 2012, at 10:06 PM, Jie Tang wrote: hi ,R users I read a series of file by the command shown as below. cop_x_data-read.table(flnm,skip=2) the first two line of the files are headfile and I skip them. and sometimes the original data file is null and there is no any data in the file

Re: [R] how to skip out and go on read while the read.table meet with a null file

2012-06-11 Thread David Winsemius
On Jun 11, 2012, at 10:16 PM, David Winsemius wrote: On Jun 11, 2012, at 10:06 PM, Jie Tang wrote: hi ,R users I read a series of file by the command shown as below. cop_x_data-read.table(flnm,skip=2) the first two line of the files are headfile and I skip them. and sometimes the original