Skip to contents

Retrieve latest draft information by year

Usage

mlb_draft_latest(year)

Arguments

year

The year for which to return data

Value

Returns a tibble with the latest draft information for the year requested:

col_nametypes
bis_player_idinteger
pick_roundcharacter
pick_numberinteger
round_pick_numberinteger
rankinteger
pick_valuecharacter
signing_bonuscharacter
home_citycharacter
home_statecharacter
home_countrycharacter
scouting_reportcharacter
school_namecharacter
school_school_classcharacter
school_countrycharacter
school_statecharacter
blurbcharacter
headshot_linkcharacter
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_primary_position_codecharacter
person_primary_position_namecharacter
person_primary_position_typecharacter
person_primary_position_abbreviationcharacter
person_use_namecharacter
person_middle_namecharacter
person_boxscore_namecharacter
person_gendercharacter
person_is_playerlogical
person_is_verifiedlogical
person_draft_yearinteger
person_bat_side_codecharacter
person_bat_side_descriptioncharacter
person_pitch_hand_codecharacter
person_pitch_hand_descriptioncharacter
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
team_idinteger
team_namecharacter
team_linkcharacter
team_seasoninteger
team_venue_idinteger
team_venue_namecharacter
team_venue_linkcharacter
team_spring_venue_idinteger
team_spring_venue_linkcharacter
team_team_codecharacter
team_file_codecharacter
team_abbreviationcharacter
team_team_namecharacter
team_location_namecharacter
team_first_year_of_playcharacter
team_league_idinteger
team_league_namecharacter
team_league_linkcharacter
team_division_idinteger
team_division_namecharacter
team_division_linkcharacter
team_sport_idinteger
team_sport_linkcharacter
team_sport_namecharacter
team_short_namecharacter
team_franchise_namecharacter
team_club_namecharacter
team_spring_league_idinteger
team_spring_league_namecharacter
team_spring_league_linkcharacter
team_spring_league_abbreviationcharacter
team_all_star_statuscharacter
team_activelogical
draft_type_codecharacter
draft_type_descriptioncharacter
is_draftedlogical
is_passlogical
yearcharacter

Examples

# \donttest{
 try(mlb_draft_latest(year = 2020))
#> ── MLB Draft (Latest) data from MLB.com ───────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:07 UTC
#> # A tibble: 3 × 95
#>   pick_round pick_number display_pick_number round_pick_number
#>   <chr>            <int>               <int>             <int>
#> 1 5                  160                 160                29
#> 2 5                  160                 160                29
#> 3 5                  160                 160                29
#> # ℹ 91 more variables: pick_value <chr>, signing_bonus <chr>,
#> #   home_city <chr>, home_state <chr>, home_country <chr>,
#> #   school_name <chr>, school_school_class <chr>, school_country <chr>,
#> #   school_state <chr>, headshot_link <chr>, person_id <int>,
#> #   person_full_name <chr>, person_link <chr>, person_first_name <chr>,
#> #   person_last_name <chr>, person_primary_number <chr>,
#> #   person_birth_date <chr>, person_current_age <int>, …
# }