decode4int | R Documentation |
The function decode4int converts each element in a given binary vector to a integer number.
decode4int(x, M, ...)
x |
A vector containing binary numbers |
M |
A vector containing the number of bits of each binary in the x. |
... |
Further arguments passed to or from other methods. |
This function converts each element in the binary vector passed with the x argument to an integer. The M argument refers to the number of bits of each binary in the x vector.
A vector of integer for input binary vector
Zeynel Cebeci & Erkut Tekeli
encode4int
binmat = c(0,0,1,1,1,0,0,1,0,0,1,0) M = c(4,4,4) intmat = decode4int(binmat, M=M) intmat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.