[R] code for functions in base package
Benjamin.STABLER@odot.state.or.us
Benjamin.STABLER at odot.state.or.us
Thu May 13 22:39:00 CEST 2004
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:blaine at mix.wvu.edu]
>Sent: Thursday, May 13, 2004 1:30 PM
>To: R-help at stat.math.ethz.ch
>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
>
>______________________________________________
>R-help at stat.math.ethz.ch 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
>
More information about the R-help
mailing list