Learn R Programming

squashinformr (version 0.1.4)

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

Arguments

year

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

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

Run the code above in your browser using DataLab