Trying to convert hexadecimal strings to numbers usable in R (64-bit), I tried (according to the manual page) as.hexstring
. Unfortunately I get 'x' cannot be coerced to class "hexmode"
more often than I'd like.
In a quick test I found out that as.hexmode("7fffffff")
works, but as.hexmode("80000000")
does not. So obviously "cannot be coerced" actually means "signed overflow". I'm surprised that a system running on a 64-bit machine is limited to 31-bit numbers.
What I actually want to numerically deal with are strings like 0x12345678.12345678
(representing 64-bit numbers). Do I really have to digest these in four-digit-chunks and put them into a non-integer numeric variable?