[R] Calling R from fortran

Duncan Murdoch murdoch at stats.uwo.ca
Wed Jul 13 02:05:49 CEST 2005


Michael Prager wrote:

> I don't know if R can easily read Fortran unformatted (sometimes called
> "binary") data, or how.  

Yes, it's fairly easy.  You would use a file() connection, and 
readBin().  The only tricky part might be figuring out exactly what is 
the R equivalent to what your fortran is writing.

Duncan Murdoch




More information about the R-help mailing list