to_decimal {mlr3misc} | R Documentation |
Convert a Vector of Bits to a Decimal Number
Description
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.
Usage
to_decimal(bits)
Arguments
bits |
( |
Value
(integer(1)
).
[Package mlr3misc version 0.15.1 Index]