Description Usage Arguments Value Examples
Query function to return the matches of one or more players in the data set. Function is case-insensitive, all names will be set to lower before matching.
1 | find_player(x, ..., won_lost = c("both", "won", "lost"))
|
x |
A data frame from the |
... |
Character string of the full player name(s). Multiple player names are separated by a comma. |
won_lost |
Character string indicating if only the won matches, lost matches, or both should be returned. |
A subset of x
with the matches of the requested players.
1 2 | library(dplyr)
atp_matches %>% find_player("roger federer", "Rafael Nadal", "NOVAK DJOKOVIC")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.