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

2011-03-04 Thread Nicolas Berkowitsch
Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nicolas Berkowitsch Sent: vrijdag 4 maart 2011 11:05 To: r-help@r-project.org Subject: [R] overleap an iteration within

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

2011-03-04 Thread Philipp Pagel
> 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 Wissensc

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

2011-03-04 Thread Nicolas Berkowitsch
Dear R-list member, I'm using the function pmnorm() (-->library(mnormt)) within a for-loop. Certain parameter values leads to an error message: "(In sqrt(diag(S)) : NaNs produced, In sqrt(1/diag(V)) : NaNs produced, In cov2cor(S) : diag(.) had 0 or NA entries; non-finite result is doubtful)"