bcdToInteger | R Documentation |
Convert a BCD Value to an Integer Value
bcdToInteger(x, endian = c("little", "big"))
x |
a raw value, or vector of raw values, coded in binary-coded decimal. |
endian |
character string indicating the endian-ness ("big" or "little"). The PC/intel convention is to use "little", and so most data files are in that format. |
An integer, or list of integers.
Dan Kelley
library(oce)
twenty.five <- bcdToInteger(as.raw(0x25))
thirty.seven <- as.integer(as.raw(0x25))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.