Learn R Programming

squashinformr (version 0.2.1)

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 = 2021, world_tour = TRUE)

Arguments

year

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

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 2021 PSA World Tour tournaments
# }
# NOT RUN {
get_tournaments()
# }
# NOT RUN {
## Get data on 2020 non-PSA World Tour tournaments
# }
# NOT RUN {
get_tournaments(2020, world_tour = FALSE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab