to_decimal | R Documentation |
Converts a logical vector from binary to decimal.
The bit vector may have any length, the last position is the least significant, i.e.
bits are multiplied with 2^(n-1)
, 2^(n-2)
, ..., 2^1
, 2^0
where n
is the
length of the bit vector.
to_decimal(bits)
bits |
( |
(integer(1)
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.