Description Usage Arguments Details Value Examples
View source: R/wrapper_utils.R
Returns a data frame of games from MySportsFeeds version 2.0 API
1 | msf_seasonal_games(league, season, verbose)
|
league |
the league to fetch |
season |
the season to fetch |
verbose |
print status info |
msf_seasonal_games
adds four columns at the right of the tibble:
league the source league of the data
season the source season of the data, and
date the game date (started) in the Eastern USA timezone ("EST5EDT").
slug the game slug (date-away_team-home_team)
ot number of overtime periods
The returned tibble will be sorted in chronological order.
a list of two items
status_code the HTTP status code (200 for success)
response if status_code == 200, a tibble of games; otherwise, the raw text.
1 2 3 4 5 | ## Not run:
nba_games <- dfstools::msf_seasonal_games(
season = "2017-2018-regular", league = "nba"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.