Skip to contents

Retrieve Homerun Derby Bracket

Usage

mlb_homerun_derby_bracket(game_pk)

Arguments

game_pk

The game_pk for which you want to return data

Value

Returns a tibble with the following columns

col_nametypes
game_pkinteger
event_namecharacter
event_type_codecharacter
event_type_namecharacter
event_datecharacter
venue_idinteger
venue_namecharacter
venue_linkcharacter
is_multi_daylogical
is_primary_calendarlogical
file_codecharacter
event_numberinteger
public_facinglogical
roundinteger
num_battersinteger
top_seed_completelogical
top_seed_startedlogical
top_seed_winnerlogical
top_seed_seedinteger
top_seed_is_winnerlogical
top_seed_is_completelogical
top_seed_is_startedlogical
top_seed_num_home_runsinteger
top_seed_player_idinteger
top_seed_player_full_namecharacter
top_seed_player_linkcharacter
top_seed_top_derby_hit_data_launch_speedinteger
top_seed_top_derby_hit_data_total_distanceinteger
bottom_seed_completelogical
bottom_seed_startedlogical
bottom_seed_winnerlogical
bottom_seed_seedinteger
bottom_seed_is_winnerlogical
bottom_seed_is_completelogical
bottom_seed_is_startedlogical
bottom_seed_num_home_runsinteger
bottom_seed_player_idinteger
bottom_seed_player_full_namecharacter
bottom_seed_player_linkcharacter
bottom_seed_top_derby_hit_data_launch_speedinteger
bottom_seed_top_derby_hit_data_total_distanceinteger

Examples

# \donttest{
  try(mlb_homerun_derby_bracket(game_pk = 511101))
#> ── MLB Homerun Derby Bracket data from MLB.com ────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:11 UTC
#> # A tibble: 7 × 41
#>   game_pk event_name event_type_code event_type_name event_date venue_id
#>     <int> <chr>      <chr>           <chr>           <chr>         <int>
#> 1  511101 All-Star … O               Other           2017-07-1…     4169
#> 2  511101 All-Star … O               Other           2017-07-1…     4169
#> 3  511101 All-Star … O               Other           2017-07-1…     4169
#> 4  511101 All-Star … O               Other           2017-07-1…     4169
#> 5  511101 All-Star … O               Other           2017-07-1…     4169
#> 6  511101 All-Star … O               Other           2017-07-1…     4169
#> 7  511101 All-Star … O               Other           2017-07-1…     4169
#> # … with 35 more variables: venue_name <chr>, venue_link <chr>,
#> #   is_multi_day <lgl>, is_primary_calendar <lgl>, file_code <chr>,
#> #   event_number <int>, public_facing <lgl>, round <int>,
#> #   num_batters <int>, top_seed_complete <lgl>, top_seed_started <lgl>,
#> #   top_seed_winner <lgl>, top_seed_seed <int>,
#> #   top_seed_is_winner <lgl>, top_seed_is_complete <lgl>,
#> #   top_seed_is_started <lgl>, top_seed_num_home_runs <int>, …
# }