Skip to contents

Get ESPN men's college basketball game rosters

Usage

espn_mbb_game_rosters(game_id)

Arguments

game_id

Game ID

Value

A game rosters data frame

col_nametypes
athlete_idinteger
athlete_uidcharacter
athlete_guidcharacter
athlete_typecharacter
sdrinteger
first_namecharacter
last_namecharacter
full_namecharacter
athlete_display_namecharacter
short_namecharacter
weightinteger
display_weightcharacter
heightinteger
display_heightcharacter
ageinteger
date_of_birthcharacter
birth_place_citycharacter
birth_place_statecharacter
birth_place_countrycharacter
slugcharacter
headshot_hrefcharacter
headshot_altcharacter
jerseycharacter
hand_typecharacter
hand_abbreviationcharacter
hand_display_valuecharacter
position_idinteger
position_namecharacter
position_display_namecharacter
position_abbreviationcharacter
position_leaflogical
linkedlogical
experience_yearsinteger
experience_display_valuecharacter
experience_abbreviationcharacter
activelogical
draft_display_textcharacter
draft_roundinteger
draft_yearinteger
draft_selectioninteger
status_idinteger
status_namecharacter
status_typecharacter
status_abbreviationcharacter
starterlogical
validlogical
did_not_playlogical
display_namecharacter
ejectedlogical
team_idinteger
team_guidcharacter
team_uidcharacter
team_sdrinteger
team_slugcharacter
team_locationcharacter
team_namecharacter
team_nicknamecharacter
team_abbreviationcharacter
team_display_namecharacter
team_short_display_namecharacter
team_colorcharacter
team_alternate_colorcharacter
is_activelogical
is_all_starlogical
logo_hrefcharacter
logo_dark_hrefcharacter
game_idinteger
orderinteger
home_awaycharacter
winnerlogical
roster_hrefcharacter

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_mbb_game_rosters(game_id = 401256760))
#> ── ESPN MBB Game Roster Information from ESPN.com ─────────────── hoopR 2.1.0 ──
#>  Data updated: 2023-11-28 22:09:51 UTC
#> # A tibble: 34 × 76
#>    athlete_id athlete_uid  athlete_guid athlete_type    sdr first_name last_name
#>         <int> <chr>        <chr>        <chr>         <int> <chr>      <chr>    
#>  1    4277850 s:40~l:41~a… 7b156c52-fa… basketball   4.28e6 RaiQuan    Gray     
#>  2    4432829 s:40~l:41~a… 2734604d-09… basketball   4.43e6 Balsa      Koprivica
#>  3    4433134 s:40~l:41~a… dd0bb1da-07… basketball   4.43e6 Scottie    Barnes   
#>  4    4277854 s:40~l:41~a… f44291c9-0d… basketball   4.28e6 MJ         Walker   
#>  5    4277852 s:40~l:41~a… f376da3f-46… basketball   4.28e6 Anthony    Polite   
#>  6    4279098 s:40~l:41~a… 89f097ed-f5… basketball   4.28e6 Malik      Osborne  
#>  7    4701240 s:40~l:41~a… f35c5378-4b… basketball   4.70e6 Tanor      Ngom     
#>  8    4683134 s:40~l:41~a… f878c598-70… basketball   4.68e6 Quincy     Ballard  
#>  9    4701239 s:40~l:41~a… 88820814-39… basketball   4.70e6 Sardaar    Calhoun  
#> 10    4592191 s:40~l:41~a… 066a390d-78… basketball   4.59e6 Nathanael  Jack     
#> # ℹ 24 more rows
#> # ℹ 69 more variables: full_name <chr>, athlete_display_name <chr>,
#> #   short_name <chr>, weight <int>, display_weight <chr>, height <int>,
#> #   display_height <chr>, age <int>, date_of_birth <chr>,
#> #   birth_place_city <chr>, birth_place_state <chr>, birth_place_country <chr>,
#> #   birth_country_alternate_id <chr>, birth_country_abbreviation <chr>,
#> #   slug <chr>, headshot_href <chr>, headshot_alt <chr>, jersey <chr>, …
# }