Look up Baseball Player Name by ID
Source:R/chadwick_playername_lookup.R
chadwick_player_name_lu.Rd
This function allows you to query the Chadwick Bureau's public register of baseball players and the various IDs associated with them in different systems of record.
Arguments
- id
An integer or character string representing a player ID in a baseball database, cross-referenced through the Chadwick Bureau's public register of baseball players.
Value
A data frame of baseball players and the various IDs associated with them in different systems of record.
col_name | types |
name_first | character |
name_last | character |
name_given | character |
name_suffix | character |
name_nick | character |
birth_year | integer |
mlb_played_first | integer |
key_mlbam | integer |
key_retro | character |
key_bbref | character |
key_fangraphs | integer |
Examples
# \donttest{
try(playername_lookup(4885))
#> ── Player Name Lookup from the Chadwick Bureau's public register of base
#> ℹ Data updated: 2022-04-30 07:15:02 UTC
#> # A tibble: 1 × 11
#> name_first name_last name_given name_suffix name_nick birth_year
#> <chr> <chr> <chr> <chr> <chr> <int>
#> 1 Nyjer Morgan Nyjer Jamid "" Tony Plush 1980
#> # … with 5 more variables: mlb_played_first <int>, key_mlbam <int>,
#> # key_retro <chr>, key_bbref <chr>, key_fangraphs <int>
try(playername_lookup("kaaihki01"))
#> ── Player Name Lookup from the Chadwick Bureau's public register of base
#> ℹ Data updated: 2022-04-30 07:15:06 UTC
#> # A tibble: 1 × 11
#> name_first name_last name_given name_suffix name_nick birth_year
#> <chr> <chr> <chr> <chr> <chr> <int>
#> 1 Kila Ka'aihue Micah Kila "" "" 1984
#> # … with 5 more variables: mlb_played_first <int>, key_mlbam <int>,
#> # key_retro <chr>, key_bbref <chr>, key_fangraphs <int>
# }