Retrieve Homerun Derby data
Value
Returns a tibble with the following columns
col_name | types |
game_pk | integer |
event_name | character |
event_date | character |
event_type_code | character |
event_type_name | character |
venue_id | integer |
venue_name | character |
round | integer |
num_batters | integer |
batter | character |
batter_id | integer |
batter_link | character |
top_seed_started | logical |
top_seed_complete | logical |
top_seed_winner | logical |
bonus_time | logical |
home_run | logical |
tie_breaker | logical |
is_home_run | logical |
time_remaining | character |
is_bonus_time | logical |
is_tie_breaker | logical |
hit_data_launch_speed | integer |
hit_data_launch_angle | integer |
hit_data_total_distance | integer |
hit_data_coordinates_coord_x | numeric |
hit_data_coordinates_coord_y | numeric |
hit_data_coordinates_landing_pos_x | numeric |
hit_data_coordinates_landing_pos_y | numeric |
hit_data_trajectory_data_trajectory_polynomial_x | list |
hit_data_trajectory_data_trajectory_polynomial_y | list |
hit_data_trajectory_data_trajectory_polynomial_z | list |
hit_data_trajectory_data_valid_time_interval | list |
top_seed_seed | integer |
top_seed_is_winner | logical |
top_seed_is_complete | logical |
top_seed_is_started | logical |
top_seed_num_home_runs | integer |
top_seed_player_id | integer |
top_seed_player_full_name | character |
top_seed_player_link | character |
top_seed_top_derby_hit_data_launch_speed | integer |
top_seed_top_derby_hit_data_total_distance | integer |
bottom_seed_started | logical |
bottom_seed_complete | logical |
bottom_seed_winner | logical |
bottom_seed_seed | integer |
bottom_seed_is_winner | logical |
bottom_seed_is_complete | logical |
bottom_seed_is_started | logical |
bottom_seed_num_home_runs | integer |
bottom_seed_player_id | integer |
bottom_seed_player_full_name | character |
bottom_seed_player_link | character |
bottom_seed_top_derby_hit_data_launch_speed | integer |
bottom_seed_top_derby_hit_data_total_distance | integer |
venue_link | character |
is_multi_day | logical |
is_primary_calendar | logical |
file_code | character |
event_number | integer |
public_facing | logical |
Examples
# \donttest{
try(mlb_homerun_derby(game_pk = 511101))
#> ── MLB Homerun Derby data from MLB.com ────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:10 UTC
#> # A tibble: 396 × 62
#> game_pk event_name event_date event_type_code event_type_name
#> <int> <chr> <chr> <chr> <chr>
#> 1 511101 All-Star Workout … 2017-07-1… O Other
#> 2 511101 All-Star Workout … 2017-07-1… O Other
#> 3 511101 All-Star Workout … 2017-07-1… O Other
#> 4 511101 All-Star Workout … 2017-07-1… O Other
#> 5 511101 All-Star Workout … 2017-07-1… O Other
#> 6 511101 All-Star Workout … 2017-07-1… O Other
#> 7 511101 All-Star Workout … 2017-07-1… O Other
#> 8 511101 All-Star Workout … 2017-07-1… O Other
#> 9 511101 All-Star Workout … 2017-07-1… O Other
#> 10 511101 All-Star Workout … 2017-07-1… O Other
#> # … with 386 more rows, and 57 more variables: venue_id <int>,
#> # venue_name <chr>, round <int>, num_batters <int>, batter <chr>,
#> # batter_id <int>, batter_link <chr>, top_seed_complete <lgl>,
#> # top_seed_started <lgl>, top_seed_winner <lgl>, bonus_time <lgl>,
#> # home_run <lgl>, tie_breaker <lgl>, is_home_run <lgl>,
#> # time_remaining <chr>, is_bonus_time <lgl>, is_tie_breaker <lgl>,
#> # hit_data_launch_speed <int>, hit_data_launch_angle <int>, …
# }