Description Usage Arguments Functions Examples
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.
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, ...)
|
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 |
current_season
: The current season for a given date (or today), along with supported team/player stats.
daily_dfs
: A list of players, along with their DFS salaries and actual fantasy points.
daily_game_schedule
: The daily game schedule
daily_player_stats
: A list of player stats totals for those players who particpated in games on a given day.
roster_players
: A list of players, along with details, currently assigned to a team's roster.
scoreboard
: Scores and status for all games on a given day.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.