Description Usage Arguments Value Examples
The function returns the team performance of football teams in England using API collection. The data is from https://api.football-data.org/v2/teams/86/matches?status=SCHEDULED. Given specific team names, it will return the performance of these teams.
1 | read_api_team(teams, all = FALSE)
|
teams |
the team names of given teams |
all |
If all is true, it will return the basic information of all. The default value of all is FALSE. |
the performance of football teams
1 2 3 4 5 6 7 | # Example 1: Get the team performance of Liverpool, Chelsea
perfrm_sample <- read_api_team(teams = c("Liverpool", "Chelsea"))
print(perfrm_sample)
# Example 2: Get the team performance of all football teams from England
perfrm_all <- read_api_team(all = TRUE)
print(perfrm_all)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.