[R] Viewing function code

2009-08-10 Thread Werner W.
Hi, in the quest of learning from others' codes, I am still stumbling over the problem how to view some of the functions. I know about methods() & getAnywhere(), showMethods(), getMethods() but I still cannot view every function. How would I look at the code of the "merge" function? Thanks a m

[R] Viewing Function Code

2009-09-15 Thread Michael Pearmain
Hi All, I'd like to see the function code behind the barplots2() function in the gplots package, however i come across a bit of a stumbling block of a hidden function, can anyone help? > library(gplots) > methods(barplot2) [1] barplot2.default* Non-visible functions are asterisked > barplot2 f

Re: [R] Viewing function code

2009-08-10 Thread Dimitris Rizopoulos
well, you almost have it -- try this: # two methods for the merge generic methods(merge) merge.default merge.data.frame I hope it helps. Best, Dimitris Werner W. wrote: Hi, in the quest of learning from others' codes, I am still stumbling over the problem how to view some of the functions

Re: [R] Viewing function code

2009-08-10 Thread Werner W.
Brilliant, that works! Thanks a lot for the quick help, Werner Dimitris Rizopoulos-4 wrote: > > well, you almost have it -- try this: > > # two methods for the merge generic > methods(merge) > > merge.default > merge.data.frame > > > I hope it helps. > > Best, > Dimitris > > -- Vie

Re: [R] Viewing Function Code

2009-09-15 Thread Erik Iverson
To: r-help@r-project.org Subject: [R] Viewing Function Code Hi All, I'd like to see the function code behind the barplots2() function in the gplots package, however i come across a bit of a stumbling block of a hidden function, can anyone help? > library(gplots) > methods(barplot2) [

Re: [R] Viewing Function Code

2009-09-15 Thread Tobias Verbeke
Michael Pearmain wrote: I'd like to see the function code behind the barplots2() function in the gplots package, however i come across a bit of a stumbling block of a hidden function, can anyone help? library(gplots) methods(barplot2) [1] barplot2.default* Non-visible functions are asteri