Re: [R] set off error messages

From: David Barron <mothsailor_at_googlemail.com>
Date: Tue 26 Sep 2006 - 16:27:43 GMT

Try ?try

On 26/09/06, Mollet, Fabian <Fabian.Mollet@wur.nl> wrote:
> Hello there!
>
> I'm creacting a loop for(i in 1:n){...}within which I build a nls model at each iteration. for some of the values of i, the algoritm in the nls function doesn't converge or cannot find a solution and consequently an error message is produced, and so my loop is interupted. The errors don't really matter to me as all the other values might still be useful and therefore I want to ignore the errors, so that that the return of the models for which no solution is found should just be NA values, so that I get a value for every i. How can I turn off the error message and make return NA values instead?
>
> Thanks in advance for your help...
>
> Fabian
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

______________________________________________
R-help@stat.math.ethz.ch 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 Wed Sep 27 02:41:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 26 Sep 2006 - 17:30:21 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.