Description Usage Arguments Value Examples
Get SoFIFA scores for players, teams, or complete leagues.
1 2 3 4 5 | get_player_scores(player_ids, max_results = Inf)
get_team_scores(team_id, max_results = Inf)
get_league_scores(league_id, max_results = Inf)
|
player_ids |
Numeric (vector of) ID(s) obtained via |
max_results |
Numeric maximum results returned. Defaults to |
team_id |
Numeric ID obtained via |
league_id |
Numeric ID obtained via |
player_scores
, team_scores
, league_scores
,
a data frame.
1 2 3 4 5 6 7 8 9 10 11 | # get scores for Harry Kane
player_scores <- get_player_scores(202126)
# get scores for Harry Kane and Dele Alli
player_scores <- get_player_scores(c(202126, 211117))
# get scores for all Tottenham Hotspur players
team_scores <- get_team_scores(18, max_results = 5)
# get scores for all Premier League players
league_scores <- get_league_scores(13, max_results = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.