Skip to contents

MLB Positions

Usage

mlb_positions()

Value

Returns a tibble with the following columns

col_nametypes
position_short_namecharacter
position_full_namecharacter
position_abbreviationcharacter
position_codecharacter
position_typecharacter
position_formal_namecharacter
game_positionlogical
pitcherlogical
fielderlogical
outfieldlogical
position_display_namecharacter

Examples

# \donttest{
  try(mlb_positions())
#> ── MLB Positions data from MLB.com ────────────────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:24 UTC
#> # A tibble: 37 × 11
#>    position_short_name position_full_name position_abbrev… position_code
#>    <chr>               <chr>              <chr>            <chr>        
#>  1 Pitcher             Pitcher            P                1            
#>  2 Catcher             Catcher            C                2            
#>  3 1st Base            First Base         1B               3            
#>  4 2nd Base            Second Base        2B               4            
#>  5 3rd Base            Third Base         3B               5            
#>  6 Shortstop           Shortstop          SS               6            
#>  7 Left Field          Outfielder         LF               7            
#>  8 Center Field        Outfielder         CF               8            
#>  9 Right Field         Outfielder         RF               9            
#> 10 Designated Hitter   Designated Hitter  DH               10           
#> # … with 27 more rows, and 7 more variables: position_type <chr>,
#> #   position_formal_name <chr>, position_display_name <chr>,
#> #   outfield <lgl>, game_position <lgl>, pitcher <lgl>, fielder <lgl>
# }