Skip to contents

Retrieve Homerun Derby Players

Usage

mlb_homerun_derby_players(game_pk)

Arguments

game_pk

The game_pk for which you want to return data

Value

Returns a tibble with the following columns

col_nametypes
game_pkinteger
event_namecharacter
event_datecharacter
event_type_codecharacter
event_type_namecharacter
venue_idinteger
venue_namecharacter
player_idinteger
player_full_namecharacter
player_linkcharacter
player_first_namecharacter
player_last_namecharacter
player_primary_numbercharacter
player_birth_datecharacter
player_current_ageinteger
player_birth_citycharacter
player_birth_state_provincecharacter
player_birth_countrycharacter
player_heightcharacter
player_weightinteger
player_activelogical
player_use_namecharacter
player_middle_namecharacter
player_boxscore_namecharacter
player_nick_namecharacter
player_gendercharacter
player_is_playerlogical
player_is_verifiedlogical
player_draft_yearinteger
player_pronunciationcharacter
player_mlb_debut_datecharacter
player_name_first_lastcharacter
player_name_slugcharacter
player_first_last_namecharacter
player_last_first_namecharacter
player_last_init_namecharacter
player_init_last_namecharacter
player_full_fml_namecharacter
player_full_lfm_namecharacter
player_strike_zone_topnumeric
player_strike_zone_bottomnumeric
player_name_matrilinealcharacter
player_current_team_idinteger
player_current_team_namecharacter
player_current_team_linkcharacter
player_current_team_seasoninteger
player_current_team_team_codecharacter
player_current_team_file_codecharacter
player_current_team_abbreviationcharacter
player_current_team_team_namecharacter
player_current_team_location_namecharacter
player_current_team_first_year_of_playcharacter
player_current_team_short_namecharacter
player_current_team_franchise_namecharacter
player_current_team_club_namecharacter
player_current_team_all_star_statuscharacter
player_current_team_activelogical
player_current_team_parent_org_namecharacter
player_current_team_parent_org_idinteger
player_current_team_venue_idinteger
player_current_team_venue_namecharacter
player_current_team_venue_linkcharacter
player_current_team_spring_venue_idinteger
player_current_team_spring_venue_linkcharacter
player_current_team_league_idinteger
player_current_team_league_namecharacter
player_current_team_league_linkcharacter
player_current_team_division_idinteger
player_current_team_division_namecharacter
player_current_team_division_linkcharacter
player_current_team_sport_idinteger
player_current_team_sport_linkcharacter
player_current_team_sport_namecharacter
player_current_team_spring_league_idinteger
player_current_team_spring_league_namecharacter
player_current_team_spring_league_linkcharacter
player_current_team_spring_league_abbreviationcharacter
player_primary_position_codecharacter
player_primary_position_namecharacter
player_primary_position_typecharacter
player_primary_position_abbreviationcharacter
player_bat_side_codecharacter
player_bat_side_descriptioncharacter
player_pitch_hand_codecharacter
player_pitch_hand_descriptioncharacter
venue_linkcharacter
is_multi_daylogical
is_primary_calendarlogical
file_codecharacter
event_numberinteger
public_facinglogical

Examples

# \donttest{
  try(mlb_homerun_derby_players(game_pk = 511101))
#> ── MLB Homerun Derby Players data from MLB.com ────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:12 UTC
#> # A tibble: 8 × 91
#>   game_pk event_name event_date event_type_code event_type_name venue_id
#>     <int> <chr>      <chr>      <chr>           <chr>              <int>
#> 1  511101 All-Star … 2017-07-1… O               Other               4169
#> 2  511101 All-Star … 2017-07-1… O               Other               4169
#> 3  511101 All-Star … 2017-07-1… O               Other               4169
#> 4  511101 All-Star … 2017-07-1… O               Other               4169
#> 5  511101 All-Star … 2017-07-1… O               Other               4169
#> 6  511101 All-Star … 2017-07-1… O               Other               4169
#> 7  511101 All-Star … 2017-07-1… O               Other               4169
#> 8  511101 All-Star … 2017-07-1… O               Other               4169
#> # … with 85 more variables: venue_name <chr>, player_id <int>,
#> #   player_full_name <chr>, player_link <chr>, player_first_name <chr>,
#> #   player_last_name <chr>, player_primary_number <chr>,
#> #   player_birth_date <chr>, player_current_age <int>,
#> #   player_birth_city <chr>, player_birth_state_province <chr>,
#> #   player_birth_country <chr>, player_height <chr>,
#> #   player_weight <int>, player_active <lgl>, player_use_name <chr>, …
# }