Description Usage Arguments Details Value See Also Examples
These functions return multiple data for a specific unit.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | get_season_events(season_id = integer(0))
get_event_matches(event_id = integer(0))
get_ongoing_matches()
get_season_player_matches(season_id = integer(0), player_id = integer(0))
get_event_players(event_id = integer(0))
get_season_pro_players(season_id = integer(0))
get_season_ama_players(season_id = integer(0))
get_season_rankings(season_id = integer(0))
|
season_id |
Year of a season start |
event_id |
Event id in character, integer or numeric form |
player_id |
Player id in character, integer or numeric form |
Seasons in snooker start approximately in May-June and end not long after World Championship ends.
get_season_events
returns data.frame of events in
a specific season.
get_event_matches
returns data.frame of matches in
a specific event.
get_ongoing_matches
returns data.frame of matches
that are being played at the moment of query.
get_season_player_matches
returns data.frame of
matches for a specific player in a specific season.
get_event_players
returns data.frame of players in
a specific event. Column status
is filled with NA
.
get_season_pro_players
returns data.frame of professional
players in a specific season. Column status
is
filled with pro
.
get_season_ama_players
returns data.frame of amateur
players in a specific season. Column status
is
filled with ama
.
get_season_rankings
returns a data.frame of
rankings. For ongoing season result is the most up to
date official rankings. For ended seasons result is rankings at the end
of the season.
get_data_by_id for querying data by ID.
get_data_all for querying all data for unit type.
1 2 3 4 5 6 7 8 | ## Not run:
# Get events that were played in season 2015-2016.
get_season_events(season_id = 2015)
# Get matches that were played in event with id 398.
get_event_players(event_id = 398)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.