[R] function call
vincent at 7d4.com
vincent at 7d4.com
Mon Jun 19 16:30:54 CEST 2006
Gabor Grothendieck a écrit :
> Perhaps you what you want to do is to return an object
> that has a print method like this:
> f1 <- function(x) structure(c(x, x^2), class = "f1")
> print.f1 <- function(x) cat("x is", x[1], "x squared is", x[2], "\n")
Thank you Gabor for this idea.
For the moment interactive() seems enough for my need,
but I'll keep also this way in mind.
More information about the R-help
mailing list