Description Usage Arguments Value Examples
Select one or more tournaments from x
.
1 | filter_tourney(x, ...)
|
x |
A data frame from the |
... |
Either the name or the id of the tournament(s). Might
be used together. The ids are formed by the last three characters
of |
x |
A data frame from the |
... |
A vector with the ids and/or tournaments. |
A subset of x
with the matches of the requested tournaments.
1 2 3 4 5 6 7 8 9 10 11 | # find all the Grand Slam matches in 2016
library(dplyr)
atp_matches %>% filter_time(2016) %>%
filter_tourney("Australian Open", "Roland Garros", "Wimbledon", "US Open")
find all the Grand Slam matches from 2010 to 2015
atp_matches %>% filter_time(2010, 2015) %>%
filter_tourney(520, 540, 560, 580)
find all matches at Sydney, Brisbane and Australian Open
atp_matches %>% filter_tourney("Sydney", "Brisbane", 580)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.