Skip to contents

Retrieve draft pick information by year

Usage

mlb_draft(year)

Arguments

year

The year for which to return data

Value

Returns a tibble with information for every draft pick in every round for the year requested

col_nametypes
bis_player_idinteger
pick_roundcharacter
pick_numberinteger
round_pick_numberinteger
rankinteger
pick_valuecharacter
signing_bonuscharacter
scouting_reportcharacter
blurbcharacter
headshot_linkcharacter
is_draftedlogical
is_passlogical
yearcharacter
home_citycharacter
home_statecharacter
home_countrycharacter
school_namecharacter
school_school_classcharacter
school_countrycharacter
school_statecharacter
person_idinteger
person_full_namecharacter
person_linkcharacter
person_first_namecharacter
person_last_namecharacter
person_primary_numbercharacter
person_birth_datecharacter
person_current_ageinteger
person_birth_citycharacter
person_birth_state_provincecharacter
person_birth_countrycharacter
person_heightcharacter
person_weightinteger
person_activelogical
person_use_namecharacter
person_middle_namecharacter
person_boxscore_namecharacter
person_gendercharacter
person_is_playerlogical
person_is_verifiedlogical
person_draft_yearinteger
person_name_first_lastcharacter
person_name_slugcharacter
person_first_last_namecharacter
person_last_first_namecharacter
person_last_init_namecharacter
person_init_last_namecharacter
person_full_fml_namecharacter
person_full_lfm_namecharacter
person_strike_zone_topnumeric
person_strike_zone_bottomnumeric
person_pronunciationcharacter
person_name_titlecharacter
person_mlb_debut_datecharacter
person_name_matrilinealcharacter
person_primary_position_codecharacter
person_primary_position_namecharacter
person_primary_position_typecharacter
person_primary_position_abbreviationcharacter
person_bat_side_codecharacter
person_bat_side_descriptioncharacter
person_pitch_hand_codecharacter
person_pitch_hand_descriptioncharacter
team_idinteger
team_namecharacter
team_linkcharacter
team_all_star_statuscharacter
team_spring_league_idinteger
team_spring_league_namecharacter
team_spring_league_linkcharacter
team_spring_league_abbreviationcharacter
draft_type_codecharacter
draft_type_descriptioncharacter

Examples

# \donttest{
  try(mlb_draft(year = 2020))
#> ── MLB Draft data from MLB.com ────────────────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:06 UTC
#> # A tibble: 160 × 77
#>    bis_player_id pick_round pick_number display_pick_number
#>            <int> <chr>            <int>               <int>
#>  1        807255 1                    1                   1
#>  2        788201 1                    2                   2
#>  3        792606 1                    3                   3
#>  4        771881 1                    4                   4
#>  5        415542 1                    5                   5
#>  6        784616 1                    6                   6
#>  7       5009176 1                    7                   7
#>  8        807429 1                    8                   8
#>  9       5005747 1                    9                   9
#> 10        780070 1                   10                  10
#> # ℹ 150 more rows
#> # ℹ 73 more variables: round_pick_number <int>, rank <int>,
#> #   pick_value <chr>, signing_bonus <chr>, scouting_report <chr>,
#> #   blurb <chr>, headshot_link <chr>, is_drafted <lgl>, is_pass <lgl>,
#> #   year <chr>, home_city <chr>, home_state <chr>, home_country <chr>,
#> #   school_name <chr>, school_school_class <chr>, school_country <chr>,
#> #   school_state <chr>, person_id <int>, person_full_name <chr>, …
# }