msf_by_game: MySportsFeeds API calls by game

Description Usage Arguments Functions Examples

Description

If you provide multiple gameids it will execute with a delay between each query. This is to ensure you obey limit rates but you are free to lower the parameter if you don't think your queries will reach the throttle limits.

Usage

1
2
3
4
5
6
7
msf_by_game(feed, sport, gameid, season = "current", delay = 1, ...)

game_lineup(sport, gameid, season = "current", ...)

game_boxscore(sport, gameid, season = "current", ...)

game_pbp(sport, gameid, season = "current", ...)

Arguments

feed

feed to request

sport

mlb | nfl | nba | etc..

gameid

strings, "40265" or c("40265", "11111") or "20171015-SF-WAS"

season

string, ex. "2017-regular" | "2017-playoff"

delay

number of seconds between queries

...

additional query parameters

Functions

Examples

1
2
3
4
## Not run: 
j <- game_boxscore("nba", "47627", playerstats = c("ftMade", "ftAtt"))

## End(Not run)

zamorarr/msf2 documentation built on May 29, 2019, 11:46 a.m.