Skip to content
Back to formatted view

Raw Message

Message-ID: <BN8PR04MB6241D9A119003AF109F97B99F95B9@BN8PR04MB6241.namprd04.prod.outlook.com>
Date: 2021-05-03T22:37:15Z
From: Martin Morgan
Subject: inverse of the methods function
In-Reply-To: <9b53cf$fsqt82@ironport10.mayo.edu>

> methods(class = "lm")
 [1] add1           alias          anova          case.names     coerce
 [6] confint        cooks.distance deviance       dfbeta         dfbetas
[11] drop1          dummy.coef     effects        extractAIC     family
[16] formula        hatvalues      influence      initialize     kappa
[21] labels         logLik         model.frame    model.matrix   nobs
[26] plot           predict        print          proj           qr
[31] residuals      rstandard      rstudent       show           simulate
[36] slotsFromS3    summary        variable.names vcov
see '?methods' for accessing help and source code

Martin Morgan

?On 5/3/21, 6:34 PM, "R-help on behalf of Therneau, Terry M., Ph.D. via R-help" <r-help-bounces at r-project.org on behalf of r-help at R-project.org> wrote:

    Is there a complement to the methods function, that will list all the defined methods for 
    a class?    One solution is to look directly at the NAMESPACE file, for the package that 
    defines it, and parse out the entries.   I was looking for something built-in, i.e., easier.


    -- 
    Terry M Therneau, PhD
    Department of Health Science Research
    Mayo Clinic
    therneau at mayo.edu

    "TERR-ree THUR-noh"


    	[[alternative HTML version deleted]]

    ______________________________________________
    R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
    https://stat.ethz.ch/mailman/listinfo/r-help
    PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    and provide commented, minimal, self-contained, reproducible code.