How to split 32 bits data into 16 bit or 8 bit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to split 32 bits data into 16 bit or 8 bit

fw42746
Hi,

I am new user on R. I want to split a vector of hex data such as "00ff8020" "02d00000" "001e0240" "00010096" "00010033"
into 16 bits such as:
"00ff", "8020", "02d0","0000","001e", "0240", "0001","0096", "0001", "0033"

Are there any way to do it? Also is this a right forum to post such R question?

Thanks

Frank