Description Usage Arguments Value Examples
View source: R/convert_canonical_graycode.R
Convert a given graycode into its canonical format: beginning with 1, digits representing different groups are of increasing order
1 |
code |
An interger vector, i.e. the input graycode, which can be of any random integer vectors |
An integer vector of the canonical graycode
1 2 3 | convert_canonical_graycode(c(2, 1, 3, 4, 2))
a <- sample(c(1:9), 1000, replace = TRUE)
convert_canonical_graycode(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.