Learn R Programming

squashinformr (version 0.2.6)

get_tournament_players: Get a tournament's players from SquashInfo

Description

Given a tournament name or a year, get_tournament_players() returns player registrants for PSA World Tour tournaments and other events.

Usage

get_tournament_players(tournament = NULL, year = 2022, world_tour = TRUE)

Arguments

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.

Value

Tibble containing the tournament name, competition category, tournament date, player, seed, nationality, round_reached.

References

http://www.squashinfo.com/results

Examples

Run this code
# NOT RUN {
## Who played in the Allam British Open in 2022?
# }
# NOT RUN {
get_tournament_players(tournament = "Allam British Open", year = 2022)
# }
# NOT RUN {
## Return player registrant data for all PSA World Tour tournaments in 2022
# }
# NOT RUN {
get_tournament_players(year = 2022, world_tour = TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab