Re: [R] "return" function

About this list Date view Thread view Subject view Author view Attachment view

From: Claudia Tebaldi (tebaldi@rap.ucar.edu)
Date: Sat 15 Sep 2001 - 03:56:33 EST


Message-id: <Pine.GSO.4.05.10109141145280.29817-100000@virga.rap.ucar.edu>

as you say in your subject line, 'return' is a function
you may want to say something like

...
if(condition) return(NULL)
...

or simply
...
if(condition) return()
...

using just 'return' in your code makes R print out the function, not
execute it

c

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Thu 17 Jan 2002 - 11:10:06 EST