Re: [R] transform R to C

2009-01-05 Thread Charles C. Berry
On Mon, 5 Jan 2009, Andreas Wittmann wrote: Dear R users, i would like to transform the following function from R-code to C-code and call it from R in order to speed up the computation because in my other functions this function is called many times. `dgcpois` <- function(z, lambda1, lamb

[R] transform R to C

2009-01-05 Thread Andreas Wittmann
Dear R users, i would like to transform the following function from R-code to C-code and call it from R in order to speed up the computation because in my other functions this function is called many times. `dgcpois` <- function(z, lambda1, lambda2) { `f1` <- function(alpha, lambda1, lambda2