statcast_leaderboard: Scrape Batted Ball Distance/Velocity Data from Baseball...

Description Usage Arguments Value Examples

Description

This function allows you to scrape all leaderboard statistics from the Baseball Savant batted ball data leaderboard

Usage

1
2
statcast_leaderboard(bat_pitch = "pit", year = NULL,
  from.date = NULL, qual = 20)

Arguments

bat_pitch

either 'bat' or 'pit'

year

YYYY number format

from.date

YYYY-MM-DD format

qual

Number of ABs that meets the qualification

Value

data frame

Examples

1
statcast<-statcast_leaderboard('bat', 2016, "2016-04-10", 20)

drewgriffith15/griffun documentation built on May 15, 2019, 1:56 p.m.