msf_by_date: MySportsFeeds API calls by date

Description Usage Arguments Functions Examples

View source: R/by-date.r

Description

If you provide multiple dates 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
 8
 9
10
11
12
13
msf_by_date(feed, sport, date = Sys.Date(), season = "current", delay = 1)

current_season(sport, ...)

daily_dfs(sport, ...)

daily_game_schedule(sport, ...)

daily_player_stats(sport, ...)

roster_players(sport, ...)

scoreboard(sport, ...)

Arguments

feed

feed to request

sport

mlb | nfl | nba | etc..

date

date, ex. as.Date("2017-05-08")

season

ex. 2017-regular | current

delay

number of seconds between queries

...

additional parameters passed to msf_by_date such as date or season

Functions

Examples

1
2
3
4
5
6
## Not run: 
resp <- daily_dfs("nba", c(Sys.Date(), Sys.Date() - 1), delay = 3)
resp <- daily_game_schedule("nhl")
resp <- daily_player_stats("mlb", as.Date("2017-06-06"), season = "2017-regular")

## End(Not run)

zamorarr/msf documentation built on June 22, 2018, 7:23 p.m.