showOddsDF: Combine Odds, Fixture, and In-Running Information into a...

Description Usage Arguments Value See Also Examples

View source: R/showOddsDF.R

Description

Queries the event listing for a given sport and the odds offered on each event. This query can be filtered by league and/or event ID, and narrowed to include only live events.

Usage

1
2
3
showOddsDF(sportid, leagueids = NULL, eventids = NULL, since = NULL,
  islive = 0, force = TRUE, tableformat = "mainlines", namesLength = 3,
  attachLeagueInfo = TRUE, oddsformat = "AMERICAN", fixtures_since = NULL)

Arguments

sportid

An integer giving the sport. If this is missing in interactive mode, a menu of options is presented to the user.

leagueids

A vector of league IDs, or NULL.

eventids

A vector of event IDs, or NULL.

since

Used to receive incremental odds updates. See GetOdds.

islive

When TRUE, retrieve only live events.

force

Currently ignored.

tableformat

The format of the odds. See GetOdds.

namesLength

The number of identifiers to use in the names.

attachLeagueInfo

When TRUE, include league information in the data.

oddsformat

Format for the returned odds. See GetOdds.

fixtures_since

Used to receive incremental fixture updates. See GetFixtures.

Value

A data frame combining odds and fixtures data, containing NAs where levels of factors do not have a value. Example of the naming convention: 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.

See Also

See GetOdds, GetFixtures, and GetInrunning for the underlying API requests.

Examples

1
2
3
4
SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
# Run without arguments, it will prompt you for the sport
showOddsDF()

marcoblume/pinnacle.API documentation built on Sept. 11, 2019, 4:05 a.m.