[R] how can I use R functions in Fortran 90

Mike Prager mike.prager at noaa.gov
Tue Dec 29 17:08:04 CET 2009


Anny Huang <annylhuang at gmail.com> wrote:

> Is there a way that I can import R functions into Fortran? Especially, I
> want to generate random numbers from some not-so-common distributions (e.g.
> inverted chi square) but did not find any routines written in Fortran that
> deal with distributions other than uniform and normal.

If you are interested in pure Fortran code for the problem, you
could look at routine G01FCF here:

http://gams.nist.gov/search.cgi?Pattern=chi+square&Boolean=AND&Match=Full&Limit=100&Show=Yes

GAMS (the Guide to Available Mathematical Software) has a lot of
good code.



-- 
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.




More information about the R-help mailing list