get_team_roster: Team Roster Scrape

get_team_rosterR Documentation

Team Roster Scrape

Description

This function returns a data frame of the roster for the specified team. This will include player names and positions as well as jersey number, height and school year.

Usage

get_team_roster(
  team.id = NA,
  season = NA,
  team.name = NA,
  use_file = F,
  save_file = F,
  base_path = NA,
  overwrite = F
)

Arguments

team.id

The unique id given to each college/team for each season. This can be found in the url of the team page.

season

Alternative to using the id, you can get a team from data(teamids) with a season and team name specification. String for the season stored as yyy1-y2 (2018-19 is current)

team.name

Alternative to using the id, you can get a team from data(teamids) with a season and team name specification. This inputs a team name, to be used along with season. This needs the school name not the complete team name, so "Duke" not "Duke Blue Devils".

Value

data frame with each row representing a player on the roster

  • Jersey - Player jersey number

  • Player - Name of Player

  • Pos - Position (one of G,F,C) as designated by the NCAA

  • Ht - Height as reported by the NCAA

  • Yr - School year, as Fr, So, Jr, Sr

Examples

get_team_roster(team.id = 450680)
get_team_roster(season = "2018-19", team.name = "Penn")

jflancer/bigballR documentation built on March 1, 2025, 3:57 a.m.