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 -
and structure of data -
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
Post a Comment