[R] error message stops "for" command
Steve Lianoglou
mailinglist.honeypot at gmail.com
Wed Jun 16 19:00:44 CEST 2010
Hi,
On Wed, Jun 16, 2010 at 11:37 AM, diana buitrago <dianacamila at 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
More information about the R-help
mailing list