Displaying 2 results from an estimated 2 matches for "headfil".
Did you mean:
headfile
2012 Jun 12
1
how to skip out and go on read while the read.table meet with a null file
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 situation,my command would be in the error and tell me that
there is not data in the file and can not go on.
How can I go on read the files even if the file...
2012 Jun 28
1
how to skip from some null file and go on reading?
hi ,
I am reading a series of files by the command shown as below.
cop_x_data<-read.table(flnm(i)
,skip=2,allowEscapes=TRUE,blank.lines.skip=TRUE)
the first two line of the files are headfile and I skip them by skip=2.
and sometimes the data file is null and there is no any data
in the file except for the head information.
At this situation,my command would be in the error and tell me that
there is not data in the file and can not go on.
How can I skip out from the null file and go on...