#' Convert Indonesian odds to Malaysian odds
#'
#' @param x A vector of Indonesian odds
#'
#' @return A vector of Malaysian odds
#'
#'@export
#'
#' @examples
#' odds.indo2malay(c(1.93,2.05))
odds.indo2malay <- function (x) {
malay <- x
malay[] <- NA_real_
malay[which(x <= -1 | x >= 1)] <- -1 / x[which(x <= -1 | x >= 1)]
malay
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.