Reading Binary Data in R -


i trying read binary data r since it's first time doing this, having problems.

this how binary data looks -

enter image description here

and structure of data -

enter image description here

i started playing readbin function in r -

data <- readbin(file(file_to_read,"rb"),integer(), n = 1, endian = "little") 

this gives me data 3 , looks encouraging.

now, since id1 integer , rest of variables real, readbin function -

data <- readbin(file(file_to_read,"rb"),integer(), n = 4, size = 4, endian = "little") 

should (i may wrong here) give me first 4 values of id1,

3 -2147483647   464465287  1082846778 

how can correctly read data given structure? want create new data frame 2 columns "id1" , "ab_time" data.

thanks much!


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -