Hi, On Wed, Jun 16, 2010 at 11:37 AM, diana buitrago <dianacam...@gmail.com> wrote: > Hello all, > I am using a for statement to run a loop in R but I get an error message and > the loop stops. I need that the loop continues til the end. I know I can use > the NEXT command but I don“t know how the sintax woul be for this particular > situation.
1. Locate the statement which is causing the error in your for loop. 2. Wrap that statement in a tryCatch(...) call See the help page: ?tryCatch -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact ______________________________________________ R-help@r-project.org 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.