bin2gray | 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
gray2bin
bin = c(1,0,1,1) bin2gray(bin) # returns 1110 bin = c(1,0,1,0) bin2gray(bin) # returns 1111
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.