[R] code for functions in base package
kjetil@acelerate.com
kjetil at acelerate.com
Thu May 13 23:22:07 CEST 2004
On 13 May 2004 at 16:30, Brittany Erin Laine wrote:
> 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.
>
Then a useful way is to say
debug(dexp)
and then step through the code, thiugh I think that function rapidly
disappears into internal C code.
>From within a debug() session, tou can use ? (help)
and other functions to investigate the objects, readinfg the help for
function you see used, and so on.
Kjetil Halvorsen
> 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