Dear Jean, thanks for your answer. It is a real mystery. I just tried the
code again, it did not work. Then I did what you suggested, just manually
putting j to the first value. That worked. Then I used the old code again
and it did also work. I have no idea why....:) But thanks anyway... Maybe R
had to be convinced that there is not reason to complain...:)
Best
Katrin

2012/11/8 Jean V Adams [via R] <ml-node+s789695n4648876h16@n4.nabble.com>

> 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=subjectquantity+6+i*(subjectquantity+7)
>         print (j)
>         results<-read.table(file, header=F, skip=j, nrows=subjectquantity)
>
> }
>
> Jean
>
>
>
> Katrin Heimann <[hidden email]<http://user/SendEmail.jtp?type=node&node=4648876&i=0>>
> wrote on 11/07/2012 08:51:47 AM:
> >
> > 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=subjectquantity)
> >
> > timeintervals have been specified as argument as 12
> > subjectquantity as 9
> >
> > the file it should be reading starts like:
> >
> >
> > davide.jtfbase
> > elena.jtfbase
> > fabio.jtfbase
> > francesco.jtfbase
> > giulia.jtfbase
> > kerstin.jtfbase
> > Lucia.jtfbase
> > maria.jtfbase
> > Stephanomer.jtfbase
> > Power
> > Mean amplitude averaged over channel group
> > left_central: 30, 36, 41, 31, 37, 42, 54, 53
> > right_central: 104, 103, 105, 87, 93, 86, 80, 79
> >    Baseline1      Baseline2
> >    _left_central   _right_central   _left_central   _right_central
> > davide.jtfbase   0.94036   1.03227   1.02403   0.75338
> > elena.jtfbase   1.05467   0.52269   0.85483   0.75881
> > fabio.jtfbase   1.02207   1.14401   1.15726   0.98496
> > francesco.jtfbase   1.39298   0.97169   1.15515   1.23719
> > giulia.jtfbase   1.28790   1.54337   1.37583   2.00000
> > kerstin.jtfbase   1.78279   1.70336   1.38145   1.06702
> > Lucia.jtfbase   1.14633   1.53128   1.19042   1.56369
> > maria.jtfbase   1.23954   1.11156   0.60587   0.84131
> > Stephanomer.jtfbase   1.09375   1.01436   1.13088   1.17659
> >
> >
> > I really have no idea what is going on, if you could help me that would
> be
> > awesome!
> > Best
> > Katrin
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4648876&i=1>mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://r.789695.n4.nabble.com/error-message-no-lines-available-in-input-tp4648709p4648876.html
>  To unsubscribe from error message no lines available in input, click here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4648709&code=a2F0cmluaGVpbWFubkBnbWFpbC5jb218NDY0ODcwOXw3NjgzOTIzNg==>
> .
> NAML<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://r.789695.n4.nabble.com/error-message-no-lines-available-in-input-tp4648709p4648878.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]


