Learn R Programming

squashinformr (version 0.2.6)

get_tournaments: 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.

References

http://www.squashinfo.com/results

Examples

Run this code
# NOT RUN {
## Get data on 2022 PSA World Tour tournaments
# }
# NOT RUN {
get_tournaments()
# }
# NOT RUN {
## Get data on 2021 non-PSA World Tour tournaments
# }
# NOT RUN {
get_tournaments(2022, world_tour = FALSE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab