[R] Help about exception handling in r-project.

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Nov 5 12:07:41 CET 2007



ANUSHA AIYALU KANNAN wrote:
> Respected Sir,
>  
> I am working on something in R. I am getting the following error.
>  
> Warning messages:1: the standard deviation is zero in: cor(x, y, na.method, method == "kendall") 
>  
> I like to handle this error.
>  
> I like to know how to do error handling in R. 
>  
> I want to write the WARNING MESSAGES to a text file and exit R. Please help me with a solution.
>


See ?warning, ?stop and particularly ?try and the other links and 
references given on those help pages.

Uwe Ligges

> My mailid is anu1978 at hotmail.com
>  
> Thanking you,
> Anusha
> _________________________________________________________________
> Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power.
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> 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.



More information about the R-help mailing list