R/binToDec.R

binToDec <-
function (x) {

  dec <- sum(x * 2^(rev(seq_along(x)) - 1))
  return(dec)  

}

Try the genMOSSplus package in your browser

Any scripts or data that you put into this service are public.

genMOSSplus documentation built on May 1, 2019, 10:31 p.m.