to.decimal: Convert fractional odds to decimal odds.

View source: R/odds.R

to.decimalR Documentation

Convert fractional odds to decimal odds.

Description

Convert fractional odds to decimal odds.

Usage

to.decimal(fractional)

Arguments

fractional

A character vector of fractional odds.

Details

Decimal odds are one more than the numerical value of the fractional odds.

The decimal odds reflect the gross return expected per unit wager. For example, a wager placed on decimal odds of 1.5 (equivalent to fractional odds of 1/2) stands to receive a net win of 50

Value

A numeric vector of decimal odds.

References

http://www.bettingexpert.com/how-to/convert-odds

Examples

to.decimal(c("2/1", "5/3", "1/4"))

DataWookie/gambleR documentation built on Jan. 31, 2024, 3:15 a.m.