gray2bin | R Documentation |
The function gray2bin converts gray coded integer to a binary coded number.
gray2bin(gray)
gray |
A gray coded number. |
The gray2bin function works as a compliment of the bin2gray function.
Returns the binary coded integer equivalent of the input number.
Zeynel Cebeci & Erkut Tekeli
bin2gray
,
gray2bin2
gray = c(1,1,1,0) gray2bin(gray) # returns 1011 gray = c(1,1,1,1) gray2bin(gray) # returns 1010
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.