Description Usage Arguments Details Value See Also Examples
These functions return all available data for a specific unit.
1 2 3 4 5 6 7 8 9 10 11 | get_all_events()
get_all_matches(sleep_sec = 1, progress = TRUE)
get_all_players()
get_all_player_matches(player_id = integer(0))
get_all_pro_players()
get_all_ama_players()
|
sleep_sec |
Number of seconds to wait before the next query |
progress |
Boolean indicator of whether to show function progress |
player_id |
Player id in character, integer or numeric form |
Service api.snooker.org doesn't have an option of querying all
matches with one request. get_all_matches
performs sequential queries
over all events for their matches and combines them afterwards.
sleep_sec
is introduced in order to not overload API servers.
It can be not less than 1 second. If progress == TRUE
text progress
will be displayed in the console.
Note: get_all_matches
takes a lot of time to run.
get_all_events
returns data.frame of events
for all seasons.
get_all_matches
returns data.frame of matches
for all seasons.
get_all_players
returns data.frame of players
for all seasons. Column status
is correctly filled with
pro
and ama
.
get_all_player_matches
returns data.frame of matches
for all seasons for a specific player.
get_all_pro_players
returns data.frame of professional
players for all seasons. Column status
is filled
with pro
.
get_all_ama_players
returns data.frame of amateur
players for all seasons. Column status
is filled
with ama
.
get_data_by_id for querying data by ID.
get_data_multiple for querying multiple data for one unit.
1 2 3 4 5 | ## Not run:
# Get events for all seasons
get_all_events()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.