View source: R/01supporting_functions.r
| rawToUnsignedInt | R Documentation |
This function converts raw data into an unsigned integer
rawToUnsignedInt(raw_dat)
raw_dat |
A vector of class |
This function converts a vector of raw data into a single unsigned integer.
for conversion of raw data into a vector of unsigned integers \[0,255\] use
as.integer(). For an inverse of this function
see unsignedIntToRaw().
A single unsigned integer value based on the provided raw data
Pepijn de Vries
Other raw.operations:
as.raw(),
nybbleToSignedInt(),
nybble(),
rawToCharNull(),
rawToPTModule(),
rawToSignedInt(),
signedIntToNybble(),
signedIntToRaw(),
unsignedIntToRaw()
Other integer.operations:
nybbleToSignedInt(),
nybble(),
rawToSignedInt(),
signedIntToNybble(),
signedIntToRaw(),
unsignedIntToRaw(),
waveform()
## generate some raw data:
some.raw.data <- as.raw(c(0x01, 0x1e, 0x3f))
## convert raw data into an unsigned integer:
rawToUnsignedInt(some.raw.data)
## note the difference with
as.integer(some.raw.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.