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

View source: R/utils.R

bin2decR Documentation

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)

Arguments

binary_vector

a binary number

Value

a decimal number

Examples


bin2dec(c(1,0,1))


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.