getDataWeekly: getDataWeekly

Description Usage Arguments Details Value Examples

View source: R/getData.R

Description

Retrieves MLBAM GameDay files for a single week

Usage

1

Arguments

start

A valid date in yyyy-mm-dd format (default Sys.Date()-8)

Details

Given a date, this function will retrieve data from the week starting on the specified date from the GameDay server and process them into a single data.frame.

Value

A data.frame of class 'GameDayPlays' consisting of play-by-play data

Examples

1
2
#Retrieve all the data from the first week of the 2013 season
ds = getDataWeekly('2013-03-31')

frogman141/openWAR documentation built on Dec. 20, 2021, 8:52 a.m.