Skip to contents

Useful when try to list all the binary patterns. One can group the binary sequences according to their equivalent decimal values.

Usage

bin2dec(binary_vector)

Arguments

binary_vector

a binary number

Value

a decimal number

Examples


bin2dec(c(1,0,1))
#> [1] 5