Learn R Programming

nhlscraper (version 0.2.0)

get_espn_athlete: Get athlete (player) by ESPN Athlete (Player) ID and season

Description

get_espn_athlete() retrieves information on an athlete for a given season, including but not limited to his name, bio-metrics, birth date and location, position, team(s), and jersey number. Access get_espn_athletes() for athlete and get_seasons() for season references.

Usage

get_espn_athlete(
  athlete = 3988803,
  season = get_season_now()$seasonId%%10000
)

Value

list with various items

Arguments

athlete

integer ESPN Athlete (Player) ID

season

integer Season in YYYY

Examples

Run this code
ESPN_Charlie_McAvoy_20242025 <- get_espn_athlete(athlete=3988803, season=2025)

Run the code above in your browser using DataLab