Re: [R] error message no lines available in input

2012-11-08 Thread Jean V Adams
Katrin, I believe that error message is caused by empty lines of data in the file being read by read.table(). What is the last value for "j" printed when you run the code? What does the file look like at rows j to j+8? Does your code work if you just submit these lines? for (i in 0) { j=subjec

[R] error message no lines available in input

2012-11-07 Thread Katrin Heimann
Dear all, a program that worked well for weeks today gave me consistently the error message no lines available in input referring to the lines for (i in (0:(timeintervals-1))) { j=subjectquantity+6+i*(subjectquantity+7) print (j) results<-read.table(file, header=F, skip=j, nrows=