Learn R Programming

baker (version 1.0.4)

bin2dec: Convert a 0/1 binary-coded sequence into decimal digits

Description

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)

Value

a decimal number

Arguments

binary_vector

a binary number

Examples

Run this code

bin2dec(c(1,0,1))

Run the code above in your browser using DataLab