[R] terminating function

Covelli Paolo pcovelli at tele2.it
Fri Apr 9 11:27:45 CEST 2010


Hi everyone,

I 'm building a function, in the middle it controls the sign of a  
variable x. If x < 0 the function write a warning (Error: negative  
value!). At this point I want the function stops without execute the  
remaining code.
How can I do to terminate the function before your ending?

Thanks in advance.
Paolo



More information about the R-help mailing list