updateGame: updateGame

Description Usage Arguments Details Value Examples

View source: R/getData.R

Description

Replaces data from a single game

Usage

1
updateGame(gameId.vec, data, ...)

Arguments

data

a data.frame returned by getData()

gameId

A valid MLBAM gameId

Details

Deletes, and then rbinds fresh information from a particular game.

Value

a data.frame

Examples

1
2
getData(start = '2013-03-31', end = '2013-07-14')
ds = updateGame('gid_2013_04_16_nynmlb_colmlb_2')

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