View source: R/01supporting_functions.r
| rawToSignedInt | R Documentation |
This function converts a vector of raw data into signed integer values.
rawToSignedInt(raw_dat)
raw_dat |
A vector of |
This function converts a vector of raw data into signed integer values
[-128,127]. To convert unsigned integers into raw data use as.raw().
For the inverse of this function see signedIntToRaw().
A vector of the same length as raw_dat, holding signed integer values.
Pepijn de Vries
Other raw.operations:
as.raw(),
nybbleToSignedInt(),
nybble(),
rawToCharNull(),
rawToPTModule(),
rawToUnsignedInt(),
signedIntToNybble(),
signedIntToRaw(),
unsignedIntToRaw()
Other integer.operations:
nybbleToSignedInt(),
nybble(),
rawToUnsignedInt(),
signedIntToNybble(),
signedIntToRaw(),
unsignedIntToRaw(),
waveform()
## generate some raw data:
some.raw.data <- as.raw(c(0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x90))
## convert the raw data into a vector of signed intgers:
rawToSignedInt(some.raw.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.