Re: [R] Question: how to convert raw to numeric

2013-04-03 Thread Henrik Bengtsson
See ?readBin - works also with raw objects. Henrik On Apr 3, 2013 1:18 AM, "Mike Chen" wrote: I know that there is a function to convert binary data to string named rawToChar.but I wander is there any similar function for "Integer" and "float".I need to read some binary file in "integer" and "f

[R] Question: how to convert raw to numeric

2013-04-03 Thread Mike Chen
I know that there is a function to convert binary data to string named rawToChar.but I wander is there any similar function for "Integer" and "float".I need to read some binary file in "integer" and "float" data. I can do this job in this way: (as below) first convert 4 byte raw to bits then pack