get_tournaments: Get tournaments from SquashInfo

View source: R/get_tournament_.R

get_tournamentsR Documentation

Get tournaments from SquashInfo

Description

Given a year, get_tournaments() returns data for PSA World Tour tournaments and other events.

Usage

get_tournaments(year = 2022, world_tour = TRUE)

Arguments

year

integer indicating the tournament year. Must be one of 2021 or 2022.

world_tour

logical indicating whether to only return PSA World Tour tournaments.

Value

Tibble containing the league, competition category, name, date, city, and country.

Note

This function only returns tournaments from 2021 and 2022, as any other data are not available to non-premium members on SquashInfo.

References

http://www.squashinfo.com/results

Examples


## Get data on 2022 PSA World Tour tournaments
get_tournaments()

## Get data on 2021 non-PSA World Tour tournaments
get_tournaments(2022, world_tour = FALSE)


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