[R] error-handling question
Jason Turner
jasont at indigoindustrial.co.nz
Mon Feb 24 11:09:08 CET 2003
On Mon, Feb 24, 2003 at 01:50:55AM -0800, 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?
Almost a FAQ.
help(try)
Jason
--
Indigo Industrial Controls Ltd.
64-21-343-545
jasont at indigoindustrial.co.nz
More information about the R-help
mailing list