[R] Need help in calling C code from R
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sun Nov 16 16:51:31 CET 2008
See the manual we wrote to help you, 'Writing R Extensions'. If that is
not enough, the topic is covered in several books on R, including 'S
Programming'. You can also find on-line tutorials of various qualities
(often obsolete or inaccurate).
On Sun, 16 Nov 2008, Rainer M Krug wrote:
> I would like to implement the "Earth Movers Distance" into R and found
> the code in C on the following page:
> 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
> Could somebody please help me in calling the code from R?
> 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
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help