uss_make_teams_matches: Make a teams-matches tibble

View source: R/teams-matches.R

uss_make_teams_matchesR Documentation

Make a teams-matches tibble

Description

This has essentially the same as the matches data; here, a row is returned for every combination of team and match. Thus there are two rows returned for each row in the data_matches tibble: one for each team.

Usage

uss_make_teams_matches(data_matches)

Arguments

data_matches

data.frame created using uss_get_matches() or uss_make_matches()

Value

tibble with columns country, tier, season, team, date, opponent, at_home, goals_for, goals_against; ordered by country, tier, season, team, date.

Examples

uss_get_matches("england") |>
  uss_make_teams_matches() |>
  dplyr::filter(team == "Leeds United") |>
  tail()

ijlyttle/ussie documentation built on July 18, 2022, 9:43 a.m.