get_data_multiple: Get multiple data for one unit

Description Usage Arguments Details Value See Also Examples

Description

These functions return multiple data for a specific unit.

Usage

 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))

Arguments

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

Details

Seasons in snooker start approximately in May-June and end not long after World Championship ends.

Value

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.

See Also

get_data_by_id for querying data by ID.

get_data_all for querying all data for unit type.

Examples

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)

evgeniC/snookerorg documentation built on May 16, 2019, 9:39 a.m.