Skip to contents

Get ESPN men's college basketball player stats data

Usage

espn_mbb_player_stats(athlete_id, year, season_type = "regular", total = FALSE)

Arguments

athlete_id

Athlete ID

year

Year

season_type

(character, default: regular): Season type - regular or postseason

total

(boolean, default: FALSE): Totals

Value

Returns a tibble with the player stats data

col_nametypes
athlete_idinteger
athlete_uidcharacter
athlete_guidcharacter
athlete_typecharacter
sdrinteger
first_namecharacter
last_namecharacter
full_namecharacter
display_namecharacter
short_namecharacter
weightnumeric
display_weightcharacter
heightnumeric
display_heightcharacter
ageinteger
date_of_birthcharacter
birth_place_citycharacter
birth_place_statecharacter
birth_place_countrycharacter
slugcharacter
headshot_hrefcharacter
headshot_altcharacter
jerseycharacter
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
defensive_blocksnumeric
defensive_defensive_reboundsnumeric
defensive_stealsnumeric
defensive_turnover_pointsnumeric
defensive_avg_defensive_reboundsnumeric
defensive_avg_blocksnumeric
defensive_avg_stealsnumeric
general_disqualificationsnumeric
general_flagrant_foulsnumeric
general_foulsnumeric
general_pernumeric
general_ejectionsnumeric
general_technical_foulsnumeric
general_reboundsnumeric
general_minutesnumeric
general_avg_minutesnumeric
general_fantasy_ratingnumeric
general_plus_minusnumeric
general_avg_reboundsnumeric
general_avg_foulsnumeric
general_avg_flagrant_foulsnumeric
general_avg_technical_foulsnumeric
general_avg_ejectionsnumeric
general_avg_disqualificationsnumeric
general_assist_turnover_rationumeric
general_steal_foul_rationumeric
general_block_foul_rationumeric
general_avg_team_reboundsnumeric
general_total_reboundsnumeric
general_total_technical_foulsnumeric
general_steal_turnover_rationumeric
general_games_playednumeric
general_games_startednumeric
general_double_doublenumeric
general_triple_doublenumeric
offensive_assistsnumeric
offensive_field_goalsnumeric
offensive_field_goals_attemptednumeric
offensive_field_goals_madenumeric
offensive_field_goal_pctnumeric
offensive_free_throwsnumeric
offensive_free_throw_pctnumeric
offensive_free_throws_attemptednumeric
offensive_free_throws_madenumeric
offensive_offensive_reboundsnumeric
offensive_pointsnumeric
offensive_turnoversnumeric
offensive_three_point_field_goals_attemptednumeric
offensive_three_point_field_goals_madenumeric
offensive_total_turnoversnumeric
offensive_points_in_paintnumeric
offensive_fast_break_pointsnumeric
offensive_avg_field_goals_madenumeric
offensive_avg_field_goals_attemptednumeric
offensive_avg_three_point_field_goals_madenumeric
offensive_avg_three_point_field_goals_attemptednumeric
offensive_avg_free_throws_madenumeric
offensive_avg_free_throws_attemptednumeric
offensive_avg_pointsnumeric
offensive_avg_offensive_reboundsnumeric
offensive_avg_assistsnumeric
offensive_avg_turnoversnumeric
offensive_offensive_rebound_pctnumeric
offensive_estimated_possessionsnumeric
offensive_avg_estimated_possessionsnumeric
offensive_points_per_estimated_possessionsnumeric
offensive_avg_team_turnoversnumeric
offensive_avg_total_turnoversnumeric
offensive_three_point_field_goal_pctnumeric
offensive_two_point_field_goals_madenumeric
offensive_two_point_field_goals_attemptednumeric
offensive_avg_two_point_field_goals_madenumeric
offensive_avg_two_point_field_goals_attemptednumeric
offensive_two_point_field_goal_pctnumeric
offensive_shooting_efficiencynumeric
offensive_scoring_efficiencynumeric
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

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_mbb_player_stats(athlete_id = 4433134, year = 2021))
#> ── ESPN MBB Player Season Stats from ESPN.com ─────────────────── hoopR 2.1.0 ──
#>  Data updated: 2023-11-28 22:09:53 UTC
#> # A tibble: 1 × 139
#>   athlete_id athlete_uid   athlete_guid athlete_type    sdr first_name last_name
#>        <int> <chr>         <chr>        <chr>         <int> <chr>      <chr>    
#> 1    4433134 s:40~l:41~a:… dd0bb1da-07… basketball   4.43e6 Scottie    Barnes   
#> # ℹ 132 more variables: full_name <chr>, display_name <chr>, short_name <chr>,
#> #   weight <dbl>, display_weight <chr>, height <dbl>, 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>,
#> #   flag_href <chr>, flag_alt <chr>, flag_x_country_flag <chr>, …
# }