get_tournament_players: Get a tournament's players from SquashInfo

View source: R/get_tournament_.R

get_tournament_playersR Documentation

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.

Note

This function only returns player registrant 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).

References

http://www.squashinfo.com/results

Examples

## Who played in the Allam British Open in 2022?
get_tournament_players(tournament = "Allam British Open", year = 2022)

## Return player registrant data for all PSA World Tour tournaments in 2022
get_tournament_players(year = 2022, world_tour = TRUE)


squashinformr documentation built on May 10, 2022, 5:12 p.m.