Convert numeric values to a raw vector.
numToRaw(x, nBytes = 1)
A number to be converted
The number of bytes to use
A raw vector containing the bytes representing x.
# Will be left null padded
(x <- numToRaw(421,4))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.