[R] inverse of the methods function
Martin Morgan
mtmorg@n@b|oc @end|ng |rom gm@||@com
Tue May 4 00:37:15 CEST 2021
> 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 using r-project.org on behalf of r-help using 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 using mayo.edu
"TERR-ree THUR-noh"
[[alternative HTML version deleted]]
______________________________________________
R-help using 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.
More information about the R-help
mailing list