Henrik Bengtsson wrote:
>
>
> 1. Use x <- readBin(..., what="raw", n=35269*(54*4)) to read your raw
> ("byte") data.
> 2. Turn it into a 54x4x35269 array, e.g. dim(x) <- c(54,4,35269).
> 3. Extract the 4-byte time stamps by yT <- x[1:4,,,drop=FALSE]; This
> is of type "raw". Use readBin() to
Thanks! I'll give that a try.
--
View this message in context:
http://r.789695.n4.nabble.com/readBin-which-has-two-different-sizes-tp2953365p2953619.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
ht
On Sun, Oct 3, 2010 at 10:59 AM, Ab Hu wrote:
>
> Hi,
> I have a binary file which has the following structure:
> 1) Some header in the beginning
> 2) Thousands of 216-byte data sub-grouped into 4 54-byte data structured as
> 4-byte time stamp (big endian) followed by 50 1-byte (8-bit) samples.
>
Hi,
I have a binary file which has the following structure:
1) Some header in the beginning
2) Thousands of 216-byte data sub-grouped into 4 54-byte data structured as
4-byte time stamp (big endian) followed by 50 1-byte (8-bit) samples.
So far this is how I am trying:
#Open a connection for bina
4 matches
Mail list logo