#' @export
probabilityToMoneyLine <- function(iProbability) {
moneyLine <- ifelse(iProbability > 0.5, -100 / (1 / iProbability - 1), 100 * (1 / iProbability - 1))
return(moneyLine)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.