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

Philipp Pagel p.pagel at wzw.tum.de
Fri Mar 4 11:15:39 CET 2011


> 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.

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/



More information about the R-help mailing list