Thanks, I am not sure if this is desirable (a function returning a
value only when 'asked' to do so), but I am intrigued. How can one put
such behaviour in an R function?
Robert
On Sat, May 2, 2009 at 8:27 PM, Sundar Dorai-Raj wrote:
> Not a bug. Try:
>
> print(dir.create("foo"))
>
> or
>
> foo
Sorry, I pressed the wrong button (tab in gmail is tricky) , here is
my message again, now more complete, and with the right subject:
I would like to write an S4 generic for 'median', but I am not sure
how to do this properly as the function does not have a "..." argument
I can do this
setGeneric
I would like to write an S4 generic for 'median', but I am not sure
how to do this properly as the function does not have a "..." argument
I can do this
setGeneric("median", function(x, na.rm=FALSE)
standardGeneric("median"))
but I want to be able to pass it a number of objects of the sa