[R] R: functions problem
Berton Gunter
gunter.berton at gene.com
Mon Dec 13 17:49:23 CET 2004
Two issues are at play here, S3 methods and namespaces. You need to read up
on both. But, in brief, to get an ** exported ** S3 method you need to type:
method.class, e.g.
>summary.lm
If the method is ** not** exported, you need the ::: operator or look at
?getAnywhere .
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
"The business of the statistician is to catalyze the scientific learning
process." - George E. P. Box
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Clark Allan
> Sent: Monday, December 13, 2004 8:15 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] R: functions problem
>
> hi all
>
>
> how can i see the code inside a particular function? i know one can
> simply type the function, eg ls, but sometimes when this is done one
> will get "UseMethod("some function name"). (One could also use "body"
> but i have the same problem in this case. )How does one see
> the code in
> this case?
>
More information about the R-help
mailing list