#' Convert Hong Kong Odds to Probabilities
#'
#' @param x A vector of Hong Kong odds
#'
#' @return A vector of Probabilities
#'
#'@export
#'
#' @examples
#' odds.hk2us(c(1.93,0.05))
odds.hk2prob<- function (x) {
prob <- x
prob[] <- NA_real_
prob[which(x > 0)] <- 1 / (x[which(x > 0)] + 1)
prob
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.