bin2gray {adana} | R Documentation |
The function bin2gray converts a binary coded number to gray coded integer.
bin2gray(bin)
bin |
A binary coded number. |
The bin2gray function works as a compliment of the gray2bin function.
Returns the gray coded integer equivalent of the input number.
Zeynel Cebeci & Erkut Tekeli
bin = c(1,0,1,1)
bin2gray(bin) # returns 1110
bin = c(1,0,1,0)
bin2gray(bin) # returns 1111