MLB Sport Players
Arguments
- sport_id
 The sport_id to return information for.
- season
 The season to return information for.
Value
Returns a tibble with the following columns:
| col_name | types | 
| player_id | integer | 
| full_name | character | 
| link | character | 
| first_name | character | 
| last_name | character | 
| primary_number | character | 
| birth_date | character | 
| current_age | integer | 
| birth_city | character | 
| birth_country | character | 
| height | character | 
| weight | integer | 
| active | logical | 
| use_name | character | 
| middle_name | character | 
| boxscore_name | character | 
| nick_name | character | 
| gender | character | 
| is_player | logical | 
| is_verified | logical | 
| pronunciation | character | 
| mlb_debut_date | character | 
| name_first_last | character | 
| name_slug | character | 
| first_last_name | character | 
| last_first_name | character | 
| last_init_name | character | 
| init_last_name | character | 
| full_fml_name | character | 
| full_lfm_name | character | 
| strike_zone_top | numeric | 
| strike_zone_bottom | numeric | 
| birth_state_province | character | 
| draft_year | integer | 
| name_matrilineal | character | 
| name_title | character | 
| last_played_date | character | 
| current_team_id | integer | 
| current_team_name | character | 
| current_team_link | character | 
| primary_position_code | character | 
| primary_position_name | character | 
| primary_position_type | character | 
| primary_position_abbreviation | character | 
| bat_side_code | character | 
| bat_side_description | character | 
| pitch_hand_code | character | 
| pitch_hand_description | character | 
Examples
# \donttest{
  try(mlb_sports_players(sport_id = 1, season = 2021))
#> ── MLB Sports - Players data from MLB.com ─────────── baseballr 1.6.0 ──
#> ℹ Data updated: 2024-04-13 21:56:46 UTC
#> # A tibble: 1,508 × 50
#>    player_id full_name        link   first_name last_name primary_number
#>        <int> <chr>            <chr>  <chr>      <chr>     <chr>         
#>  1    472551 Fernando Abad    /api/… Fernando   Abad      58            
#>  2    676265 Cory Abbott      /api/… Cory       Abbott    15            
#>  3    656061 Albert Abreu     /api/… Albert     Abreu     84            
#>  4    650556 Bryan Abreu      /api/… Bryan      Abreu     66            
#>  5    547989 José Abreu       /api/… José       Abreu     79            
#>  6    642758 Domingo Acevedo  /api/… Domingo    Acevedo   68            
#>  7    660670 Ronald Acuña Jr. /api/… Ronald     Acuña     13            
#>  8    592094 Jason Adam       /api/… Jason      Adam      60            
#>  9    642715 Willy Adames     /api/… Willy      Adames    27            
#> 10    613534 Austin Adams     /api/… Austin     Adams     54            
#> # ℹ 1,498 more rows
#> # ℹ 44 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>, is_player <lgl>, is_verified <lgl>,
#> #   pronunciation <chr>, mlb_debut_date <chr>, name_first_last <chr>, …
# }
