powered by
The function bin2int converts a binary coded number to integer.
bin2int(bin)
A binary coded number.
Returns the integer equivalent of the input number.
The bin2int function works as a compliment of the int2bin function.
int2bin
# NOT RUN { x <- c(1,1,1,1,1,0,1,0,0) bin2int(x) # returns 500 # }
Run the code above in your browser using DataLab