Learn R Programming

baseballr (version 1.6.0)

mlb_homerun_derby: Retrieve Homerun Derby data

Description

Retrieve Homerun Derby data

Usage

mlb_homerun_derby(game_pk)

Value

Returns a tibble with the following columns

col_nametypes
game_pkinteger
event_namecharacter
event_datecharacter
event_type_codecharacter
event_type_namecharacter
venue_idinteger
venue_namecharacter
roundinteger
num_battersinteger
battercharacter
batter_idinteger
batter_linkcharacter
top_seed_startedlogical
top_seed_completelogical
top_seed_winnerlogical
bonus_timelogical
home_runlogical
tie_breakerlogical
is_home_runlogical
time_remainingcharacter
is_bonus_timelogical
is_tie_breakerlogical
hit_data_launch_speedinteger
hit_data_launch_angleinteger
hit_data_total_distanceinteger
hit_data_coordinates_coord_xnumeric
hit_data_coordinates_coord_ynumeric
hit_data_coordinates_landing_pos_xnumeric
hit_data_coordinates_landing_pos_ynumeric
hit_data_trajectory_data_trajectory_polynomial_xlist
hit_data_trajectory_data_trajectory_polynomial_ylist
hit_data_trajectory_data_trajectory_polynomial_zlist
hit_data_trajectory_data_valid_time_intervallist
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_startedlogical
bottom_seed_completelogical
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
venue_linkcharacter
is_multi_daylogical
is_primary_calendarlogical
file_codecharacter
event_numberinteger
public_facinglogical

Arguments

game_pk

The game_pk for which you want to return data

Examples

Run this code
# \donttest{
  try(mlb_homerun_derby(game_pk = 511101))
# }

Run the code above in your browser using DataLab