[R] How to use a 'hidden' function directly?

2010-02-24 Thread Dale Steele
I would like to be able to use two functions; qansari and pansari which are found in the function ansari.test. How can I evaluate these functions independently? Thanks. --Dale For example, when I load the function ... qansari - function(p, m, n) { .C(R_qansari,

Re: [R] How to use a 'hidden' function directly?

2010-02-24 Thread Sharpie
Dale Steele wrote: I would like to be able to use two functions; qansari and pansari which are found in the function ansari.test. How can I evaluate these functions independently? Thanks. --Dale For example, when I load the function ... qansari - function(p, m, n) {

Re: [R] How to use a 'hidden' function directly?

2010-02-24 Thread Sharpie
Dale Steele wrote: methods(ansari.test) stats:::ansari.test.default the two functions that are part of ansari.test.default: qansari - function(p, m, n) { .C(R_qansari, as.integer(length(p)), q = as.double(p), as.integer(m), as.integer(n))$q

Re: [R] How to use a 'hidden' function directly?

2010-02-24 Thread Dale Steele
Thanks, when I modify the function as I think you suggest, I get the following error: qansari - function(p, m, n) { .C(R_qansari, as.integer(length(p)), q = as.double(p), as.integer(m), as.integer(n))$q } qansari( 0.025, 5, 5) Error in

Re: [R] How to use a 'hidden' function directly?

2010-02-24 Thread hadley wickham
Try: stats:::R_pansari Hadley On Wed, Feb 24, 2010 at 7:55 PM, Dale Steele dale.w.ste...@gmail.com wrote: Thanks, when I modify the function as I think you suggest, I get the following error: qansari  - function(p, m, n) {                .C(R_qansari, as.integer(length(p)), q =