R/odds.dec2indo.R

#' Convert Decimal Odds to Indonesian odds
#'
#' @param x A vector of Decimal odds
#'
#' @return A vector of Indonesian odds
#'
#'@export
#'
#' @examples
#' odds.dec2indo(c(1.93,2.05))
odds.dec2indo <- function (x) {
  indo <- x
  indo[] <- NA_real_
  indo[which(x > 1)] <- odds.dec2us(x[which(x > 1)]) / 100
  indo
}
marcoblume/odds.converter documentation built on May 21, 2019, 11:43 a.m.