Re: [R] a question on the use of 'solve'

From: Carl Witthoft <carl_at_witthoft.com>
Date: Tue, 12 Apr 2011 17:09:10 -0400


Check out ?try and ?trycatch .
THose are specifically designed to allow you to take note of an error condition while still running your function/script.

------<quote>---------
From: Laura Antolini <laura.antolini_at_unimib.it> Date: Tue, 12 Apr 2011 19:23:44 +0200

Dear R users,

I am in trouble using the function

solve(matrix)

in a loop.

When it happens that I have a singular matrix, I get an error message saying so and the loop stops.

My question is if there in any way to keep on going in the loop.

Thank you in advance,

Laura

*---------------------------------------------------------*

Laura Antolini, PhD

Department of Clinical Medicine and Prevention

University Milano-Bicocca

Monza - Italy



R-help_at_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. Received on Tue 12 Apr 2011 - 21:12:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Apr 2011 - 21:20:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive