[Rd] Method dispatch for function

From: Stavros Macrakis <macrakis_at_alum.mit.edu>
Date: Mon, 23 Nov 2009 11:24:24 -0500

(I had sent this to r-help and got no responses -- perhaps r-devel is a better list for this question?)

How can I determine what S3 method will be called for a particular first-argument class?

I was imagining something like functionDispatch('str','numeric') => utils:::str.default , but I can't find anything like this.

For that matter, I was wondering if anyone had written a version of `methods` which gave their fully qualified names if they were not visible, e.g.

methods('str') =>
    utils:::str.data.frame    utils:::str.default stats:::str.dendrogram    stats:::str.logLik    utils:::str.POSIXt


methods('str') =>

           "str.data.frame" "str.default"    "str.POSIXt"


           "str.dendrogram" "str.logLik"

Thank you,


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 23 Nov 2009 - 16:29:05 GMT

This archive was generated by hypermail 2.2.0 : Wed 25 Nov 2009 - 12:10:47 GMT