Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread zhijie zhang
> > - Original Message - From: "Duncan Murdoch" > To: "zhijie zhang" > Cc: > Sent: Saturday, January 17, 2009 6:00 AM > Subject: Re: [R] Where to find the source codes for the internal function > in stats package > > > On 17/01/2009

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Peter Dalgaard
Murray Cooper wrote: Dear Dr Murdoch, I understand in principle your explanation, but specifically where in the source distribution are these functions found? For instance, I would like to look at the code for model.matrix. Ex: ans <- .Internal(model.matrix(t, data)) I have looked at the sou

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Gabor Grothendieck
oper > > - Original Message - From: "Duncan Murdoch" > To: "zhijie zhang" > Cc: > Sent: Saturday, January 17, 2009 6:00 AM > Subject: Re: [R] Where to find the source codes for the internal function in > stats package > > >> On 17/01/2009 2:23

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Murray Cooper
but been unable to locate the file which contains model.matrix. Thanks for your help. Murray Cooper - Original Message - From: "Duncan Murdoch" To: "zhijie zhang" Cc: Sent: Saturday, January 17, 2009 6:00 AM Subject: Re: [R] Where to find the source codes for t

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Duncan Murdoch
On 17/01/2009 2:23 AM, zhijie zhang wrote: Dear all, I want to see the source codes for "dchisq(x, df, ncp=0, log = FALSE)", but cannot find it. I input "dchisq" in the R interface, and then enter, the following message return: dchisq /*/ fu

Re: [R] Where to find the source codes for the internal function in stats package

2009-01-17 Thread Felix Andrews
I guess you have the binary distribution, not the R source code. The functions you want seem to be defined in the files dchisq.c and dnchisq.c in https://svn.r-project.org/R/trunk/src/nmath/ 2009/1/17 zhijie zhang : > Dear all, > I want to see the source codes for "dchisq(x, df, ncp=0, log = F

[R] Where to find the source codes for the internal function in stats package

2009-01-16 Thread zhijie zhang
Dear all, I want to see the source codes for "dchisq(x, df, ncp=0, log = FALSE)", but cannot find it. I input "dchisq" in the R interface, and then enter, the following message return: > dchisq /*/ function (x, df, ncp = 0, log = FALSE) { if