If you want to see the code (function definition) just type the function without any parenthesizes or arguments. In this case, the dexp function calls C code since the .Internal function is called. To see internal C code you have to look at the R source.
> dexp function (x, rate = 1, log = FALSE) .Internal(dexp(x, 1/rate, log)) <environment: namespace:base> Benjamin Stabler Transportation Planning Analysis Unit Oregon Department of Transportation 555 13th Street NE, Suite 2 Salem, OR 97301 Ph: 503-986-4104 >-----Original Message----- >From: Brittany Erin Laine [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 13, 2004 1:30 PM >To: [EMAIL PROTECTED] >Subject: [R] code for functions in base package > > >Is there any way that I can see the step by step code for functions in >the base package? For instance the dexp function. I am a student >working on writing my own function for something that is similar to >this dexp function and I would like to see the step by step code. > >Brittany Laine >GTA WVU Statistics Department >331 Hodges > >______________________________________________ >[EMAIL PROTECTED] mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! >http://www.R-project.org/posting-guide.html > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
