showOddsDF - Takes a GetOdds JSON response and combines with Fixtures and Inrunning
showOddsDF - Takes a GetOdds JSON response and combines with Fixtures and Inrunning
showOddsDF(sportid, leagueids = NULL, since = NULL, islive = 0, force = TRUE, tableformat = "mainlines", namesLength = 3, attachLeagueInfo = TRUE, oddsformat = "AMERICAN", fixtures_since = NULL)
sportid |
(optional) The sportid to get odds from, if none is given, a list of options and a prompt are provided |
leagueids |
numeric vector of leagueids - can get as output from GetLeagues |
since |
numeric This is used to receive incremental updates. this will give all lines that have changed odds. |
islive |
boolean if TRUE retrieves ONLY live events |
force |
boolean default set to TRUE, forces a reload of the cache. |
tableformat |
|
namesLength |
how many identifiers to use in the names, default is 3 |
attachLeagueInfo |
whether or not to include league information in the data |
oddsformat |
default AMERICAN, see API manual for more options bettable leagues |
fixtures_since |
if set, get only fixtures that were posted since last. |
a dataframe combining GetOdds and GetFixtures data, containing NA's where levels of factors do not have a value. Naming convention is as follows, Example: spread.altLineId.N is the altLineId associated with spread.hdp.(N+1) whereas spread.hdp refers to the mainline. spread.altLineId is the first alternate, and equivalent to spread.altLineId.0
SetCredentials("TESTAPI","APITEST") AcceptTermsAndConditions(accepted=TRUE) # Run without arguments, it will prompt you for the sport showOddsDF()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.