?'::' -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111
> -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of thmsfuller...@gmail.com > Sent: Friday, May 28, 2010 12:55 PM > To: r-help@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@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. ______________________________________________ R-help@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.