get_player_recent_: Get a player's recent data from SquashInfo

View source: R/get_player_recent_.R

get_player_recent_R Documentation

Get a player's recent data from SquashInfo

Description

Given level of detail (e.g. 'results', 'matches', 'games'), the full name or rank of a player, and the competition category, get_player_recent_() returns the recent event data for PSA ranked players.

Usage

get_player_recent_(
  level = c("results", "matches", "games"),
  player = NULL,
  rank = NULL,
  category = NULL
)

Arguments

level

character string indicating the level of detail of the data to be returned. Must be one of "results", "matches", or "games".

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".

Value

Tibble containing the player rank, player name, player's seeding, round reached, event name, event date, event location, and event tour.


squashinformr documentation built on May 10, 2022, 5:12 p.m.