[R] "return" function

Claudia Tebaldi tebaldi at rap.ucar.edu
Fri Sep 14 19:56:33 CEST 2001

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  


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 at stat.math.ethz.ch

More information about the R-help mailing list