get_team_roster | R Documentation |
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.
get_team_roster(
team.id = NA,
season = NA,
team.name = NA,
use_file = F,
save_file = F,
base_path = NA,
overwrite = F
)
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". |
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
get_team_roster(team.id = 450680)
get_team_roster(season = "2018-19", team.name = "Penn")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.