R/odds.hk2indo.R

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