View source: R/get_player_recent_.R
get_player_recent_results | R Documentation |
Given the full name or rank of a player and the competition category, get_player_recent_results()
returns the recent event results table for PSA ranked players.
get_player_recent_results(player = NULL, rank = NULL, category = NULL)
player |
character string of player name. |
rank |
single integer or vector of integers indicating the rank of the PSA player(s) to return. |
category |
character string indicating the competition category. Must be one of "both", "mens", or "womens". |
Tibble containing the player rank, player name, player's seeding, round reached, event name, event date, event location, and event tour.
This function only returns results data from players ranked in the most recent PSA rankings table for Men's and Women's singles competitions. Recent results are limited to events that occurred within the current and previous calendar years.
## Get Mohamed Elshorbagy's most recent results data get_player_recent_results(player = "Mohamed Elshorbagy", category = "mens") ## Get Nour El Tayeb's recent results data get_player_recent_results("El Tayeb", category = "womens") ## Get recent results data from the top two players in both Men's and Women's competitions get_player_recent_results(rank = 1:2, category = "both")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.