Re: [R] question about read datafile

2008-12-22 Thread jim holtman
Read in the data using readLines to read the complete line. Use grep/regexpr to scan for valid lines and then convert them to numeric by using strsplit/as.numeric. On Mon, Dec 22, 2008 at 2:13 PM, Lu, Zheng wrote: > Dear all: > > > > I have been thinking to import below one data file (.txt)into

[R] question about read datafile

2008-12-22 Thread Lu, Zheng
Dear all: I have been thinking to import below one data file (.txt)into R by read.table(..,skip=1, header=T). But How can I deal with the repeated rows of TABLE NO.1 and names of data variables in the middle of this data file. The similar block will be repeated 100 times, here only show 4 of the