get_data_all: Get all data for unit type

Description Usage Arguments Details Value See Also Examples

Description

These functions return all available data for a specific unit.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

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

Details

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.

Value

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.

See Also

get_data_by_id for querying data by ID.

get_data_multiple for querying multiple data for one unit.

Examples

1
2
3
4
5
## Not run: 
# Get events for all seasons
get_all_events()

## End(Not run)

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