bin2int {adana} | R Documentation |
Convert Binary Numbers to Integers
Description
The function bin2int converts a binary coded number to integer.
Usage
bin2int(bin)
Arguments
bin |
A binary coded number. |
Details
The bin2int function works as a compliment of the int2bin function.
Value
Returns the integer equivalent of the input number.
Author(s)
Zeynel Cebeci & Erkut Tekeli
See Also
Examples
x <- c(1,1,1,1,1,0,1,0,0)
bin2int(x) # returns 500
[Package adana version 1.1.0 Index]