View source: R/get_tournament_.R
get_tournament_matches | R Documentation |
Given a tournament name or a year, get_tournament_matches()
returns match data for PSA World Tour tournaments and other events.
get_tournament_matches(tournament = NULL, year = NULL, world_tour = NULL)
tournament |
character string of name of the tournament. Partial tournament names are matched via regular expressions. |
year |
integer indicating year of competition. Must be 2021, 2022, or NULL if querying results for both years. |
world_tour |
logical indicating whether to only return PSA World Tour tournaments. |
Tibble containing the tournament name, competition category, tournament date, round, player 1, player 2, the match winner, games won (by player 1), games lost (by player 1), the match time, player 1's seed, player 2's seed, player 1's nationality, player 2's nationality.
This function only returns match data from tournaments in 2021 and 2022, as any other data are not available to non-premium members on SquashInfo. Additionally, events that do not use a single elimination format are not included in the results (e.g. Karakal Premier League).
http://www.squashinfo.com/results
## Return match data for 2022's Allam British Open. get_tournament_matches("Allam British Open", year = 2022, world_tour = TRUE) ## Return match data for all PSA World Tour tournaments in 2022 get_tournament_matches(year = 2022, world_tour = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.