showOddsDF: showOddsDF - Takes a GetOdds JSON response and turns it into a data.frame
Description
showOddsDF - Takes a GetOdds JSON response and turns it into a data.frame
Usage
showOddsDF(sportname, leagueIds = NULL, since = NULL, isLive = 0, attachLeagueNames = TRUE, force = TRUE)
Arguments
sportname
The sport name for which to retrieve the fixutres
leagueIds
numeric vector of leagueids - can get as output from GetLeagues
since
numeric This is used to receive incremental updates.
Use the value of last from previous fixtures response.
isLive
boolean if TRUE retrieves ONLY live events
attachLeagueNames
boolean default set to true, will attach league names.
force
boolean default set to TRUE, forces a reload of the cache.
bettable leagues
Value
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