[R] Problem reading binaries created with fortran

Duncan Murdoch murdoch at stats.uwo.ca
Thu Dec 17 22:02:44 CET 2009


On 17/12/2009 3:48 PM, kapo coulibaly wrote:
> Is it possible to read fortran binaries with R? I tried unsucessfully and my
> understanding is that fortran write binaries with leading and trailing
> bytes. I get numbers but not the right ones.
> Thanks
> 
> ps: the binary I'm interested in reading is a MODFLOW output with a mix of
> character, double and integers.

One other thing:  the hexView package does a very nice job of displaying 
the file, so you can work out what the structure is if the documentation 
is unclear (or nonexistent).

Duncan Murdoch




More information about the R-help mailing list