Find Biographical Information for MLB Players
Arguments
- person_ids
MLBAMIDs for players of interest. Multiple IDs should be provided in a vector separated by a comma.
Value
Returns a tibble with the following columns:
| col_name | types |
| 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_state_province | 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 |
| draft_year | integer |
| 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 |
| pronunciation | 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_people(person_ids = 502671))
#> ── MLB People data from MLB.com ───────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:21 UTC
#> # A tibble: 1 × 41
#> id full_name link first_name last_name primary_number birth_date
#> <int> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 502671 Paul Gold… /api… Paul Goldschm… 46 1987-09-10
#> # … with 34 more variables: 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>,
#> # mlb_debut_date <chr>, name_first_last <chr>, name_slug <chr>,
#> # first_last_name <chr>, last_first_name <chr>, …
try(mlb_people(person_ids = c(502671,605151)))
#> ── MLB People data from MLB.com ───────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:21 UTC
#> # A tibble: 2 × 42
#> id full_name link first_name last_name primary_number birth_date
#> <int> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 502671 Paul Gold… /api… Paul Goldschm… 46 1987-09-10
#> 2 605151 Archie Br… /api… Archie Bradley 23 1992-08-10
#> # … with 35 more variables: 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>,
#> # mlb_debut_date <chr>, name_first_last <chr>, name_slug <chr>,
#> # first_last_name <chr>, last_first_name <chr>, …
# }
