[R] Discovering methods
kjetil at entelnet.bo
Sat Nov 29 04:17:45 CET 2003
On 28 Nov 2003 at 16:27, Gabor Grothendieck wrote:
How would I discover that + is a method for POSIXct? Applying
methods() to POSIXt and POSIXct does not reveal it.
will tell you.
 as.character.POSIXt cut.POSIXt diff.POSIXt
 hist.POSIXt julian.POSIXt months.POSIXt
 quarters.POSIXt seq.POSIXt str.POSIXt
 [.POSIXct [[.POSIXct [<-.POSIXct
 all.equal.POSIXct as.data.frame.POSIXct c.POSIXct
 format.POSIXct mean.POSIXct plot.POSIXct
 print.POSIXct rep.POSIXct summary.POSIXct
Applying methods() to "+" does give it but, in general, this
would not be a feasible way to discover it since it would be
tantamount to trying everything possible:
Is there some other way?
R-help at stat.math.ethz.ch mailing list
More information about the R-help