Description Usage Arguments Details Value Examples
Get Common Team Mates For Named Players
1 | get_colleagues(all_players, players)
|
all_players |
Data.frame. Data fetched from
Transfermarkt with
|
players |
Character vector. One or more player names for whom to return
common team mates from the |
Pass one player name to the players
argument to fetch all of
their team mates in the dataset. Pass multiple players to return common
team mates and they seasons they played together.
A data.frame with a row per player and season.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Fetch player data from Transfermarkt
epl_players <- get_players(1992:2020, "England")
# Return all team mate data for one named player
get_colleagues(epl_players, "James Milner")
# Return data for all team mates in common for named players
get_colleagues(
epl_players,
c("Mark Viduka", "Kevin Phillips", "Nicky Butt")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.