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))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.