Skip to contents

Find MLB All-Star Write-ins

Usage

mlb_all_star_write_ins(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_write_ins(league_id = 103, season = 2021))
#> ── MLB All-Star Write-Ins data from MLB.com ───────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:15:37 UTC
#> # A tibble: 490 × 43
#>    player_id full_name      link     first_name last_name primary_number
#>        <int> <chr>          <chr>    <chr>      <chr>     <chr>         
#>  1    605194 Jharel Cotton  /api/v1… Jharel     Cotton    45            
#>  2    595978 Austin Hedges  /api/v1… Austin     Hedges    17            
#>  3    451584 Wade Davis     /api/v1… Wade       Davis     71            
#>  4    663554 Casey Mize     /api/v1… Casey      Mize      12            
#>  5    642048 Tayler Saucedo /api/v1… Tayler     Saucedo   54            
#>  6    521230 Liam Hendriks  /api/v1… Liam       Hendriks  31            
#>  7    609280 Miguel Andujar /api/v1… Miguel     Andujar   41            
#>  8    451594 Dexter Fowler  /api/v1… William    Fowler    25            
#>  9    667674 Jack Kruger    /api/v1… Timothy    Kruger    36            
#> 10    667670 Brent Rooker   /api/v1… Terry      Rooker    12            
#> # … with 480 more rows, and 37 more variables: birth_date <chr>,
#> #   current_age <int>, birth_city <chr>, birth_state_province <chr>,
#> #   birth_country <chr>, height <chr>, weight <int>, active <lgl>,
#> #   use_name <chr>, middle_name <chr>, boxscore_name <chr>,
#> #   nick_name <chr>, gender <chr>, is_player <lgl>, is_verified <lgl>,
#> #   draft_year <int>, pronunciation <chr>, mlb_debut_date <chr>,
#> #   name_first_last <chr>, name_slug <chr>, first_last_name <chr>, …
# }