(legacy) Query Baseball Savant Leaderboards
scrape_savant_leaderboards(
leaderboard = "exit_velocity_barrels",
year = 2020,
abs = 50,
min_pa = "q",
min_pitches = 100,
min_throws = 100,
min_field = "q",
min_run = 0,
player_type = "batter",
fielding_type = "player",
oaa_position = "",
oaa_roles = "",
team = "",
arsenal_type = "n_",
run_type = "raw",
min2b = 5,
min3b = 0,
position = "",
bats = "",
hand = ""
)
Returns a tibble of Statcast leaderboard data.
The type of leaderboard to retrieve, input as a string. Current options include exit_velocity_barrels, expected_statistics, pitch_arsenal, outs_above_average, directional_oaa, catch_probability, pop_time, sprint_speed, and running_splits_90_ft, arm_strength.
The season for which you want data.
The minimum number of batted balls. Applies only to exit_velocity_barrels leaderboards.
Minimum number of plate appearances. Can be a number or 'q' for qualified batters.
Minimum number of pitches thrown.
Minimum number of throwing opportunities.
Minimum number of fieding opportunities.
Minimum number of running opportunities.
One of either 'batter' or pitcher. For the expected_statistics leaderboard, 'batter-team' and 'pitcher-team' are also available.
One of either 'player' or 'team'.
Can be either the number position of a player or 'if' or 'of' for position categories.
Can be either the number position of a player or 'if' or 'of' for position categories.
An abbreviation for a team. Can be left blank.
One of either 'n_', 'avg_spin', or 'avg_speed'.
One of either 'percent' or 'raw'.
The minimum number of throwing attempts to second base.
The minimum number of throwing attempts to third base.
The numeric position of the player. For DH use 10. Can be left blank.
The handedness of the batter. One of 'R' or 'L'. Can be left blank.
The handedness of the pitcher. One of 'R' or 'L'. Can be left blank.