fdo_teamPlayers: Show all players for one team

Description Usage Arguments Value Examples

Description

Returns player data for a specific team from the football-data.org API

Usage

1
fdo_teamPlayers(id, token = "", response = "full")

Arguments

id

(sting) The id (e.g. "77") of the team. Requried. No default.

token

(string) football data.org API token. Optional but it's recommended that you acquire an API token. It allows the owner to document API activity. See http://api.football-data.org/register for more details.

response

(string). Determine the structure of the response. Default is "full" and "minified" will remove some meta inforation and thus return a smaller data frame. Finally, "compressed" is only supported by the fixture resource.

Value

A data frame converted from the JSON format is returned.

Examples

1
2
3
4
5
6
## Not run: 
# the team id for Athletic Bilbao is 77
# return data for all Athletic Bilbao players
fdo_teamPlayers("77")

## End(Not run)

dashee87/footballR documentation built on May 14, 2019, 6:12 p.m.