[R] Discovering methods

Thomas Lumley tlumley at u.washington.edu
Mon Dec 1 16:15:47 CET 2003


On Sun, 30 Nov 2003, Gabor Grothendieck wrote:

>
>
> Thanks.  I guess we have to be content to approximate this via:
>
>    apropos("POSIXt$|POSIXct$")
>
> although this supposes we know that POSIXct inherits from POSIXt
> and its not clear that there is a reliable way to discover that
> for S3 classes.

It's actually easier for S3 classes, since there it is objects that
inherit, not classes: eg

> class(.leap.seconds)
[1] "POSIXt"  "POSIXct"

	-thomas




More information about the R-help mailing list