Skip to contents

Find MLB All-Star Final Vote

Usage

mlb_all_star_final_vote(league_id = NULL, season = NULL)

Arguments

league_id

League ID for league all-star ballot of interest.

season

The season of the all-star ballot.

Value

Returns a tibble with the following columns:

col_nametypes
player_idinteger
full_namecharacter
linkcharacter
first_namecharacter
last_namecharacter
primary_numbercharacter
birth_datecharacter
current_ageinteger
birth_citycharacter
birth_state_provincecharacter
birth_countrycharacter
heightcharacter
weightinteger
activelogical
use_namecharacter
middle_namecharacter
boxscore_namecharacter
nick_namecharacter
gendercharacter
is_playerlogical
is_verifiedlogical
draft_yearinteger
mlb_debut_datecharacter
name_first_lastcharacter
name_slugcharacter
first_last_namecharacter
last_first_namecharacter
last_init_namecharacter
init_last_namecharacter
full_fml_namecharacter
full_lfm_namecharacter
strike_zone_topnumeric
strike_zone_bottomnumeric
pronunciationcharacter
name_matrilinealcharacter
name_titlecharacter
primary_position_codecharacter
primary_position_namecharacter
primary_position_typecharacter
primary_position_abbreviationcharacter
bat_side_codecharacter
bat_side_descriptioncharacter
pitch_hand_codecharacter
pitch_hand_descriptioncharacter
league_idnumeric
seasonnumeric

Examples

# \donttest{
  try(mlb_all_star_final_vote(league_id = 103, season = 2021))
#> ── MLB All-Star Final Votes data from MLB.com ─────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:01 UTC
#> # A tibble: 25 × 49
#>    player_id full_name         link  first_name last_name primary_number
#>        <int> <chr>             <chr> <chr>      <chr>     <chr>         
#>  1    547989 José Abreu        /api… José       Abreu     79            
#>  2    665489 Vladimir Guerrer… /api… Vladimir   Guerrero  27            
#>  3    493329 Yuli Gurriel      /api… Yulieski   Gurriel   10            
#>  4    518934 DJ LeMahieu       /api… David      LeMahieu  26            
#>  5    543760 Marcus Semien     /api… Marcus     Semien    2             
#>  6    666182 Bo Bichette       /api… Bo         Bichette  11            
#>  7    593428 Xander Bogaerts   /api… Xander     Bogaerts  2             
#>  8    621043 Carlos Correa     /api… Carlos     Correa    4             
#>  9    608324 Alex Bregman      /api… Alexander  Bregman   2             
#> 10    646240 Rafael Devers     /api… Rafael     Devers    11            
#> # ℹ 15 more rows
#> # ℹ 43 more variables: birth_date <chr>, current_age <int>,
#> #   birth_city <chr>, birth_country <chr>, height <chr>, weight <int>,
#> #   active <lgl>, use_name <chr>, use_last_name <chr>,
#> #   middle_name <chr>, boxscore_name <chr>, nick_name <chr>,
#> #   gender <chr>, name_matrilineal <chr>, is_player <lgl>,
#> #   is_verified <lgl>, pronunciation <chr>, mlb_debut_date <chr>, …
# }