GetFixtures: Get Non-Settled Events for a Given Sport

Description Usage Arguments Details Value See Also Examples

View source: R/GetFixtures.R

Description

Queries the event listing for a given sport, which can be filtered by league and/or event ID, and narrowed to include only live events.

Usage

1
2
GetFixtures(sportid, leagueids = NULL, eventids = NULL, since = NULL,
  islive = FALSE)

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

To receive only listings updated since the last query, set since to the value of last from the previous fixtures response. Otherwise it will query all listings.

islive

When TRUE, retrieve only live events.

Details

This function will raise an error if the API does not return HTTP status OK. For information on the possible errors, see the API documentation for Get Fixtures.

Value

A data frame with rows containing matching events and columns containing sport, league, and event information. Not all sports return the same listing format – in particular, only baseball listings will have pitcher information.

See Also

See GetSettledFixtures to retrieve settled events, or GetSpecialFixtures to retrieve special contestants for a sport.

Examples

1
2
3
SetCredentials("TESTAPI", "APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetFixtures(sportid = 41, leagueids = 191545)

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