bytesNeeded {rdiversity} | R Documentation |
Minimum number of "byte" needed to hold n "bit"
Description
A simple helper function that returns the minimum number of byte needed to hold the amount of n bit.
Usage
bytesNeeded(n)
Arguments
n |
The number of bit. |
Value
The number of minimum byte needed to hold n bit.
See Also
fillUpToByte or byte
Examples
ten <- as.binary(10)
rdiversity:::bytesNeeded(length(ten))
[Package rdiversity version 2.2.0 Index]