[R] How to get the definition of a function if it is masked by a variable?
Greg Snow
Greg.Snow at imail.org
Sat May 29 03:15:08 CEST 2010
?'::'
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of thmsfuller066 at gmail.com
> Sent: Friday, May 28, 2010 12:55 PM
> To: r-help at r-project.org
> Subject: [R] How to get the definition of a function if it is masked by
> a variable?
>
> Hello,
>
> Normally, if I type a function name, it shows the function definition.
> When the function is masked by a variable with the same name, it
> doesn't show the function definition any more. Can anyone please tell
> me a way how to retrieve the function definition even if it is masked
> by a variable?
>
> > x=1:3
> > length(x)
> [1] 3
> > length
> function (x) .Primitive("length")
> > length=10
> > length
> [1] 10
> > length(x)
> [1] 3
>
> --
> Tom
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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