scrape_statcast_savant: This is DEV and needs to be transformed into a...

Description Usage Arguments Examples

Description

This is DEV and needs to be transformed into a payload_method.

Usage

1
2
scrape_statcast_savant(start_date, end_date, playerid = NULL,
  player_type = NULL)

Arguments

start_date

Date of first game for which you want data. Format must be in YYYY-MM-DD format.

end_date

Date of last game for which you want data. Format must be in YYYY-MM-DD format.

playerid

The MLBAM ID for the player who's data you want to query.

player_type

The player type. Can be 'batter' or 'pitcher'

Examples

1
2
3
4
5
6
7
8
## Not run: 
scrape_statcast_savant(start_date = "2016-04-06", end_date = "2016-04-15", playerid = 621043, player_type='batter')

scrape_statcast_savant(start_date = "2016-04-06", end_date = "2016-04-15", playerid = 592789, player_type='pitcher')

scrape_statcast_savant(start_date = "2016-04-06", end_date = "2016-04-06")

## End(Not run)

keberwein/gameday_dev documentation built on May 21, 2019, 3:10 a.m.