Re: [R] Help with readBin

2012-06-18 Thread kapo coulibaly
t; > [1] 33.674 34.272 34.736 35.098 35.378 35.628 > > [7] 35.838 36.046 36.324 36.604 36.856 37.112 > > [13] 37.398 37.694 38.008 38.364 38.742 39.134 > > [19] 39.494 39.844 40.128 40.372 40.562 40.712 > > [25] 40.818 40.880 40.900 40.882 40.830 > >

Re: [R] Help with readBin

2012-06-18 Thread William Dunlap
, 2012 6:43 PM > To: kapo coulibaly; r-help@r-project.org > Subject: Re: [R] Help with readBin > > You didn't give much of a description of what sort of numbers you expected > in the header so this is pretty much a guess. However, by reading the tail of > the file with offsets 0 t

Re: [R] Help with readBin

2012-06-18 Thread William Dunlap
7.112 [13] 37.398 37.694 38.008 38.364 38.742 39.134 [19] 39.494 39.844 40.128 40.372 40.562 40.712 [25] 40.818 40.880 40.900 40.882 40.830 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com From: kapo coulibaly [mailto:kmcou...@gmail.com] Sent: Monday, June 18, 2012 5:55 PM To: William Dunlap;

Re: [R] Help with readBin

2012-06-18 Thread kapo coulibaly
mail. > > ** ** > > Bill Dunlap > > Spotfire, TIBCO Software > > wdunlap tibco.com > > ** ** > > *From:* kapo coulibaly [mailto:kmcou...@gmail.com] > *Sent:* Monday, June 18, 2012 5:35 PM > *To:* William Dunlap > *Cc:* r-help@r-project.org >

Re: [R] Help with readBin

2012-06-18 Thread kapo coulibaly
n range (0, > 32] then 2.57 > ... > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf > > Of kapo coulibaly > >

Re: [R] Help with readBin

2012-05-03 Thread William Dunlap
=3) # expect 2 numbers in range (0, 32] then 2.57 ... Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of kapo coulibaly > Sent: Thursday, May 03, 2012 10:

Re: [R] Help with readBin

2012-05-03 Thread kapo coulibaly
I did mention in my initial email that I tried little, big, swap and .Platform$endian without any success, I keep getting the same very small numbers. Thanks On Thu, May 3, 2012 at 2:36 PM, Duncan Murdoch wrote: > On 03/05/2012 1:57 PM, kapo coulibaly wrote: > >> I believe here is the structure

Re: [R] Help with readBin

2012-05-03 Thread Duncan Murdoch
On 03/05/2012 1:57 PM, kapo coulibaly wrote: I believe here is the structure of the file I'm trying to read: record marker (4 bytes), 2 integers (4 bytes each), 2 doubles (8 bytes each), one string (16 bytes or 16 characters), 3 integers (4 bytes each), 1 record marker (4 bytes) and a big array

Re: [R] Help with readBin

2012-05-03 Thread kapo coulibaly
I believe here is the structure of the file I'm trying to read: record marker (4 bytes), 2 integers (4 bytes each), 2 doubles (8 bytes each), one string (16 bytes or 16 characters), 3 integers (4 bytes each), 1 record marker (4 bytes) and a big array of doubles (8 bytes each). Everything in the fi

Re: [R] Help with readBin

2012-05-03 Thread Duncan Murdoch
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 endiannes