View source: R/01supporting_functions.r
signedIntToRaw | R Documentation |
This function converts signed integer values into a vector of raw
data.
signedIntToRaw(int_dat)
int_dat |
A vector of integer values, ranging from -128 up to 127. |
This function converts signed integer values [-128,127] into a vector of
raw
data. The function
will fail on values that are out of range (< -128 or > 127). To convert
raw data into a vector of unsigned integers use as.integer()
.
For the inverse of this function see rawToSignedInt()
.
A vector of the same length as int_dat
, holding raw
data.
Pepijn de Vries
Other raw.operations:
as.raw()
,
nybbleToSignedInt()
,
nybble()
,
rawToCharNull()
,
rawToPTModule()
,
rawToSignedInt()
,
rawToUnsignedInt()
,
signedIntToNybble()
,
unsignedIntToRaw()
Other integer.operations:
nybbleToSignedInt()
,
nybble()
,
rawToSignedInt()
,
rawToUnsignedInt()
,
signedIntToNybble()
,
unsignedIntToRaw()
,
waveform()
## generate some signed integers:
some.integers <- c(-100, 40, 0, 30, -123)
## convert the signed integers into a vector of raw data:
signedIntToRaw(some.integers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.