statcast_payload: This is DEV and needs to be transformed into a payload_method

Description Usage Arguments Examples

Description

This is DEV and needs to be transformed into a payload_method

Usage

1
statcast_payload(start, end, player_id = NULL, player_type = NULL)

Arguments

start

A start date passed as a character in ISO 8601 format. "2017-05-01"

end

An end date passed as a character in ISO 8601 format. "2017-09-01"

player_id

The MLBAM ID of a specific player.

player_type

The role of the player as a string. The default is "batter". "batter" or "pitcher"

Examples

1
2
3
4
5
6
7
8
## Not run: 
statcast_payload(start = "2016-04-06", end = "2016-04-15", player_id = 621043, player_type='batter')

statcast_payload(start = "2016-04-06", end = "2016-04-15", player_id = 592789, player_type='pitcher')

statcast_payload(start = "2016-04-06", end = "2016-04-06")

## End(Not run)

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