bin2dec: bin2dec function

View source: R/VecAlignment.R

bin2decR Documentation

bin2dec function

Description

This function convertes a binary vector into its decimal value.

Usage

bin2dec(X)

Arguments

X

is a binary vector where X[i] is the ith bit of vector.

Value

This function returns a decimal value of X.

Examples

bin2dec(X=c(1,1,1,0))


BiCausality documentation built on May 29, 2024, 5:35 a.m.