[R] translating R code to C code

Dieter Menne dieter.menne at menne-biomed.de
Tue Nov 6 18:24:50 CET 2007


Pedro Mardones <mardones.p <at> gmail.com> writes:

> 
> I would like to try to implement a big series of nested loops in a C
> code and then call it from R; however I'm not familiar with C
> programming. Does anyone know about some sort of reference I can use
> that help me to translate my code to C? (I'm thinking on something
> like to Octave to R reference posted in CRAN)
> thanks

No. R and C are not comparable, so there is not "reference". R, Octave and
Matlab have more similarities. Best is to ask someone who knows C, and explain
him/her what has to be done; you have little chance to get a C program to work
without some experience.

Dieter



More information about the R-help mailing list