On Jul 15, 2011, at 1:31 PM, andrewH wrote:

Thanks, everybody, this has been very edifying. One last question:

It seems that sometimes when a function returns something and you don't assign it, it prints to the console, and sometimes it doesn't. I'm not sure I understand which is which. My best current theory is that, if the function returns NULL, by itself and not as part of some larger object, it does not
print it, but non-null values are printed. Is that correct?

I think you should start testing your theories:

fn <- function() return(NULL)
fn()

--

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to