View source: R/01supporting_functions.r
| unsignedIntToRaw | R Documentation |
This function converts an unsigned integer into a vector of raw data.
unsignedIntToRaw(int_dat, length.out = 1)
int_dat |
A single integer value. If a list or vector of values. is provided, only the first element is evaluated. Input data are converted to absolute integer values. |
length.out |
Required length of the vector that will hold the resulting.
|
This function converts an unsigned integer value into a vector (with
a specified length, namely length.out) of raw data. For the
inverse of this function use rawToUnsignedInt().
A vector of length length.out, holding raw data.
Pepijn de Vries
Other raw.operations:
as.raw(),
nybbleToSignedInt(),
nybble(),
rawToCharNull(),
rawToPTModule(),
rawToSignedInt(),
rawToUnsignedInt(),
signedIntToNybble(),
signedIntToRaw()
Other integer.operations:
nybbleToSignedInt(),
nybble(),
rawToSignedInt(),
rawToUnsignedInt(),
signedIntToNybble(),
signedIntToRaw(),
waveform()
## generate some unsigned integer:
some.integer <- 43251
## convert the unsigned integer into raw data:
unsignedIntToRaw(some.integer, length.out = 4)
## Not run:
## note that the integer is too large to store as raw with length.out = 1:
unsignedIntToRaw(some.raw.data, length.out = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.