View source: R/get_trending_players.R
get_trending_players | R Documentation |
Given a sport and type (add or drop), return the top trending players for that selection. More specifically, the player ID and count are returned in a data frame, allowing one to see which players have been added/dropped the most given the particular lookback period (default lookback period of one day).
get_trending_players(sport, type, lookback_hours = 24, limit = 25)
sport |
Sport that you would like to query (nfl, nba, etc.) (character) |
type |
Either "add" or "drop" (character) |
lookback_hours |
Number of hours to look back (numeric). Default is 24 |
limit |
Number of results you would like (numeric). Default is 25 |
Returns a data frame containing information (player ID and count) about the trending players.
Nick Bultman, njbultman74@gmail.com, December 2021
## Not run: get_trending_players("nfl", "add", 24, 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.