Hi, have a look at ?try.
Cheers, Winfried On 24-Feb-03 ximing wu wrote: > hi, > I have a question about error-handling. Say I want to do a simulation 100 > times, each experiment involves inverting a matrix. Occasionally the matrix > is close to singularity, R gives an error message and the program stops > right there. Is there any way I can prevent the error message, assign > something (say a NULL) to the outcome, and move on? > > thanks a lot. > > > ----------------------------------------- > Ximing Wu > Department of Agricultural & Resource Economics > University of California, Berkeley > http://are.berkeley.edu/~ximing/ > ------------------------------------------ > > ______________________________________________ > [EMAIL PROTECTED] mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help --------------------------------------------------------------------- E-Mail: Winfried Theis <[EMAIL PROTECTED]> Date: 24-Feb-03 Dipl.-Math. Winfried Theis SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund Tel.: +49-231-755-5903 FAX: +49-231-755-4387 ---------------------------------------------------------------------- ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
