Re: [R] overleap an iteration within a for-loop when error message produced

From: Philipp Pagel <>
Date: Fri, 04 Mar 2011 11:15:39 +0100

> Assume that the 5th iteration (subject=5) leads to the error
> message. How can I tell R to continue with the 6th iteration?

try or tryCatch are probably what you want.



Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 04 Mar 2011 - 10:19:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Mar 2011 - 10:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive