Re: [R] Need help in calling C code from R

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sun, 16 Nov 2008 15:51:31 +0000 (GMT)

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:

> 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
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 16 Nov 2008 - 15:53:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 16 Nov 2008 - 17:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive