read_api_team: Get the Team Performance of Football Teams from England

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

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.

Value

the performance of football teams

Examples

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)

XingfuXu/football documentation built on May 14, 2019, 5:15 a.m.