Skip to contents

Output MLB Team Abbreviations

Usage

load_headshots()

Value

A tibble of player names and ids from various sources.

Examples

# \donttest{
load_headshots()
#>          player_name      last_first   chadwick_name      espn_name savant_id
#>               <char>          <char>          <char>         <char>     <num>
#>    1:     Luis Ortiz     Ortiz, Luis      Luis Ortiz     Luis Ortiz    656814
#>    2: Alex Rodriguez Rodriguez, Alex  Alex Rodriguez Alex Rodriguez    121347
#>    3: LaTroy Hawkins Hawkins, LaTroy  LaTroy Hawkins LaTroy Hawkins    115629
#>    4:     Joe Hudson     Hudson, Joe      Joe Hudson     Joe Hudson    621529
#>    5:  Bartolo Colon  Colon, Bartolo   Bartolo Colon  Bartolo Colon    112526
#>   ---                                                                        
#> 3602:           <NA>            <NA>   Blake Walston           <NA>    686796
#> 3603:           <NA>            <NA>  Chris Roycroft           <NA>    688297
#> 3604:           <NA>            <NA>    Brett Harris           <NA>    695391
#> 3605:           <NA>            <NA> Randy Rodríguez           <NA>    678495
#> 3606:           <NA>            <NA>  Tyler Ferguson           <NA>    621053
#>        bbref_id retro_id fangraphs_id espn_id
#>          <char>   <char>        <num>   <num>
#>    1: ortizlu02 ortil002        16942    2966
#>    2: rodrial01 rodra001         1274    3115
#>    3: hawkila01 hawkl001          729    3176
#>    4: hudsojo03 hudsj002        14412    3258
#>    5: colonba01 colob001          375    3602
#>   ---                                        
#> 3602: walstbl01     <NA>           NA      NA
#> 3603:      <NA>     <NA>           NA      NA
#> 3604: harribr02     <NA>           NA      NA
#> 3605:      <NA>     <NA>           NA      NA
#> 3606:      <NA>     <NA>           NA      NA
#>                                                                     espn_headshot
#>                                                                            <char>
#>    1: https://a.espncdn.com/combiner/i?img=/i/headshots/mlb/players/full/2966.png
#>    2: https://a.espncdn.com/combiner/i?img=/i/headshots/mlb/players/full/3115.png
#>    3: https://a.espncdn.com/combiner/i?img=/i/headshots/mlb/players/full/3176.png
#>    4: https://a.espncdn.com/combiner/i?img=/i/headshots/mlb/players/full/3258.png
#>    5: https://a.espncdn.com/combiner/i?img=/i/headshots/mlb/players/full/3602.png
#>   ---                                                                            
#> 3602:                                                                        <NA>
#> 3603:                                                                        <NA>
#> 3604:                                                                        <NA>
#> 3605:                                                                        <NA>
#> 3606:                                                                        <NA>
# }