View source: R/fetch_activity.R
fetch_activity | R Documentation |
This function extracts match activity and results for ATP players
fetch_activity(player, year)
player |
Character name of ATP player |
year |
Numeric year or "all" for all years |
data frame of match activity and results
name. Character name of tournament
location. Character of tournament city and country
start_date. Date object of start of tournament
end_date. Date object of end of tournament
draw. Numeric of main draw size
matches. Numeric of total matches played in main draw
surface. Character of surface
prize. Character of prize money awarded (will be in the currency of the host country)
score. Character of match score (games won and games lost are collapsed and sets indicated by forward slash)
round. Character of match round
winner. Numeric indicator if player won match
player. Character name of player
player_rank. Numeric of player rank at start of event
opponent. Character name of opponent
opponent_rank. Numeric of opponent rank at start of event
player1. Numeric of player games won in first set, NA if set not played
player2. Numeric of player games won in second set, NA if set not played
player3. Numeric of player games won in third set, NA if set not played
player4. Numeric of player games won in fourth set, NA if set not played
player5. Numeric of player games won in fifth set, NA if set not played
opponent1. Numeric of opponent games won in first set, NA if set not played
opponent2. Numeric of opponent games won in second set, NA if set not played
opponent3. Numeric of opponent games won in third set, NA if set not played
opponent4. Numeric of opponent games won in fourth set, NA if set not played
opponent5. Numeric of opponent games won in fifth set, NA if set not played
TBplayer1. Numeric of points won in first set tiebreak, NA if not played
TBplayer2. Numeric of points won in second set tiebreak, NA if not played
TBplayer3. Numeric of points won in third set tiebreak, NA if not played
TBplayer4. Numeric of points won in fourth set tiebreak, NA if not played
TBplayer5. Numeric of points won in fifth set tiebreak, NA if not played
TBopponent1. Numeric of points won in first set tiebreak, NA if not played
TBopponent2. Numeric of points won in second set tiebreak, NA if not played
TBopponent3. Numeric of points won in third set tiebreak, NA if not played
TBopponent4. Numeric of points won in fourth set tiebreak, NA if not played
TBopponent5. Numeric of points won in fifth set tiebreak, NA if not played
fetch_activity("Rafael Nadal", 2016) fetch_activity("Alexander Zverev", "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.