[R] viewing function code

2010-05-21 Thread Data Analytics Corp.

Hi,

I want to view the code for the function confint in the stats package.  
Typing just confint doesn't work.  How can I view the code?


Thanks,

Walt



Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536

(V) 609-936-8999
(F) 609-936-3733
w...@dataanalyticscorp.com
www.dataanalyticscorp.com

_


--


Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536

(V) 609-936-8999
(F) 609-936-3733
w...@dataanalyticscorp.com
www.dataanalyticscorp.com

__
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.


Re: [R] viewing function code

2010-05-21 Thread David Winsemius

Which function?

 getAnywhere(confint)
A single object matching ‘confint’ was found
It was found in the following places
  package:stats
  namespace:stats
with value

function (object, parm, level = 0.95, ...)
UseMethod(confint)
environment: namespace:stats
 methods(confint)
 [1] confint.default  confint.glm* confint.lm*
 [4] confint.nls* confint.svrepstat*   confint.svyby*
 [7] confint.svyciprop*   confint.svyglm*  confint.svykm*
[10] confint.svyquantile* confint.svyratio*confint.svystat*

   Non-visible functions are asterisked

And read Uwe Ligges article in RNews about examining source.

--  
David.


On May 21, 2010, at 10:09 AM, Data Analytics Corp. wrote:


Hi,

I want to view the code for the function confint in the stats  
package.  Typing just confint doesn't work.  How can I view the code?


Thanks,

Walt



Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536

(V) 609-936-8999
(F) 609-936-3733
w...@dataanalyticscorp.com
www.dataanalyticscorp.com

_


--


Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536

(V) 609-936-8999
(F) 609-936-3733
w...@dataanalyticscorp.com
www.dataanalyticscorp.com

__
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.


David Winsemius, MD
West Hartford, CT

__
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] 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
function (height, ...)
UseMethod(barplot2)
environment: namespace:gplots

Mike



-- 
Michael Pearmain
Senior Analytics Research Specialist

I abhor averages.  I like the individual case.  A man may have six meals
one day and none the next, making an average of three meals per day, but
that is not a good way to live.  ~Louis D. Brandeis

Google UK Ltd
Belgrave House
76 Buckingham Palace Road
London SW1W 9TQ
United Kingdom
t +44 (0) 2032191684
mpearm...@google.com

If you received this communication by mistake, please don't forward it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.

[[alternative HTML version deleted]]

__
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.


Re: [R] Viewing Function Code

2009-09-15 Thread Erik Iverson
See the reference to ?getAnywhere in the following post:

http://www.nabble.com/The-code-behind-the-function-td25370743.html

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Michael Pearmain
Sent: Tuesday, September 15, 2009 3:14 PM
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)
[1] barplot2.default*

   Non-visible functions are asterisked
 barplot2
function (height, ...)
UseMethod(barplot2)
environment: namespace:gplots

Mike



-- 
Michael Pearmain
Senior Analytics Research Specialist

I abhor averages.  I like the individual case.  A man may have six meals
one day and none the next, making an average of three meals per day, but
that is not a good way to live.  ~Louis D. Brandeis

Google UK Ltd
Belgrave House
76 Buckingham Palace Road
London SW1W 9TQ
United Kingdom
t +44 (0) 2032191684
mpearm...@google.com

If you received this communication by mistake, please don't forward it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.

[[alternative HTML version deleted]]

__
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.


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 asterisked

barplot2

function (height, ...)
UseMethod(barplot2)
environment: namespace:gplots


getAnywhere(barplot2.default)

HTH,
Tobias

__
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] 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 million,
  Werner
-- 
View this message in context: 
http://www.nabble.com/Viewing-function-code-tp24895753p24895753.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


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. 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 million,
  Werner


--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center

Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014

__
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.


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
 
 

-- 
View this message in context: 
http://www.nabble.com/Viewing-function-code-tp24895753p24895956.html
Sent from the R help mailing list archive at Nabble.com.

__
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.