[R] how to ignore error messages?

Jianping Jin jjin at unc.edu
Tue Jun 12 15:52:24 CEST 2007


Dear Xiaohui,

Thanks a lot for your help! It worked for me.

Best regards!

JP-

--On Monday, June 11, 2007 9:25 AM -0700 Xiaohui <chenxh007 at gmail.com> 
wrote:

> see ?try
>
> Jianping Jin wrote:
>> Dear group:
>>
>> I wrote a code to iterate a non-linear fit with a set of data. The
>> entire  process didn't implemented to the end because an error message,
>> "singular  gradient". I knew that some sub-sets (columns) do not fit my
>> formula well  and may result in parameters going to infinity. It is
>> pretty hard to remove  those sub sets before running the code since that
>> will take a lot of time.
>>
>> I added some logic assessments prior to running nonlinear fit. It helped
>> but some exceptions still existed. I am wondering if there is any way in
>> R  by which I can continue to run the entire code to the end by ignoring
>> the  error message?
>>
>> Greatly appreciate your help,
>>
>> Jianping
>>
>> ##################################
>> Jianping Jin Ph.D.
>> Bioinformatics scientist
>> Center for Bioinformatics
>> Room 3133 Bioinformatics building
>> CB# 7104
>> University of Chapel Hill
>> Chapel Hill, NC 27599
>> Phone: (919)843-6105
>> FAX:   (919)843-3103
>> E-Mail: jjin at email.unc.edu
>>
>> ______________________________________________
>> R-help at 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.
>>
>>
>



##################################
Jianping Jin Ph.D.
Bioinformatics scientist
Center for Bioinformatics
Room 3133 Bioinformatics building
CB# 7104, Campus
Phone: (919)843-6105
FAX:   (919)843-3103
E-Mail: jjin at unc.edu



More information about the R-help mailing list