R/bin2num.R

Defines functions bin2num

Documented in bin2num

#' Binary to Decimal
#'
#' Convert binary number to decimal.
#'
#' @param x a binary string, like \code{"101"}.
#'
#' @return Integer.
#'
#' @export

bin2num <- function(x)
{
  strtoi(x, 2)
}
arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.