Description Usage Arguments Value
Each match will be converted so its from the perspective of one player. When both players of a match are queried, two records will be created from one match. The reshaped data makes it easier to analyse the results of a single player. Function is case-insensitive.
1 | tennis_reshape(x, ...)
|
x |
A data frame from the |
... |
Character string of the full player name(s). Multiple player names are separated by a comma. If empty, all players in the set will be retained (and the data set will double in rows). |
For each match played by a requested player a record is created. The
columns player
, won_lost
, and opponent
replace the
columns winner_name
and loser_name
. All the other columns
containing player information are renamed to either player_ or opponent_
(and p_ or o_) depending to which of the players they belong.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.