Learn R Programming

binaryLogic (version 0.3.4)

bin2gray: A gray code converter function

Description

This function converts a binary number (base2) to a gray code

Usage

bin2gray(x)

Arguments

x
The binary number (base2) or a logical vector.

Value

  • The gray code as logical vector.

See Also

gray2bin