get_players | R Documentation |
Given the rank(s) and competition category, get_players()
returns profile data of ranked players in PSA World Tour competitions.
get_players(top = NULL, rank = NULL, category = NULL)
top |
integer indicating the number of top PSA players by rank to return. |
rank |
integer indicating the rank of the PSA player(s) to return. |
category |
character string indicating the competition category. Must be one of "mens", "womens", or "both". |
Tibble containing first name, last name, age, gender, birthplace, nationality, residence, height in cm, weight in kg, plays (handedness), racket brand, year of joining PSA, university, and club.
This function only returns players ranked in the most recent PSA rankings table for Men's and Women's singles competitions.
http://www.squashinfo.com/rankings/men
http://www.squashinfo.com/rankings/women
## Return the top 5 ranked players from the Women's PSA rankings get_players(top = 5, category = "womens") ## Return the 5th ranked player from both Men's and Women's PSA rankings get_players(rank = 5, category = "both")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.