[R] Help with readBin
Duncan Murdoch
murdoch.duncan at gmail.com
Thu May 3 19:26:17 CEST 2012
On 03/05/2012 12:41 PM, kapo coulibaly wrote:
> I'm trying to read a binary file created by a fortran code using readBin
> and readChar. Everything reads fine (integers and strings) except for
> double precision numbers, they are read as huge or very small number
> (1E-250,...). I tried various endianness, swap, But nothing has worked so
> far.
> I also tried on R 64 bit for linux and windows (R 2.14) and R 2.11 on
> windows XP 32 bit.
> Any help would be appreciated.
As I wrote to someone else with a similar problem a couple of weeks ago:
You need to see what's in the file. The hexView package can dump it in
various formats; see example(viewFormat) for a couple.
Duncan Murdoch
More information about the R-help
mailing list