#' @export
moneyLineToProbability <- function(iMoneyLine) {
ml <- iMoneyLine[abs(iMoneyLine) >= 100]
ip <- ifelse(ml > 0, ml / 100, -100 / ml)
ip <- 1 / (1 + ip)
return(ip)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.