[R] Need help in calling C code from R

Rainer M Krug r.m.krug at gmail.com
Sun Nov 16 16:26:18 CET 2008


Hi

I would like to implement the "Earth Movers Distance" into R and found
the code in C on the following page:

http://www.cs.duke.edu/~tomasi/software/emd.htm

Unfortunately, I don't know much (nearly nothing) about C and how to
call it from R.
As far as I have seen, the calling of the code from R should be rather
straight forward, but there are still several things I don't
understand.

Could somebody please help me in calling the code from R?

Thanks,

Rainer

P.S: if the code works nicely, I would like to either put it into a
package or add it to one.

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa



More information about the R-help mailing list