Make a standard league-play tibble
Arguments
- data_engsoc
data frame from engsoccerdata package
- country
Spain, Italy, Germany, England & Holland
Examples
uss_make_matches(engsoccerdata::spain, "Spain")
#> # A tibble: 23,915 × 8
#> country tier season date home visitor goals…¹ goals…²
#> <chr> <fct> <int> <date> <chr> <chr> <int> <int>
#> 1 Spain 1 1928 1929-02-10 Arenas de Getxo Atletico … 2 3
#> 2 Spain 1 1928 1929-02-10 Espanyol Barcelona Real Union 3 2
#> 3 Spain 1 1928 1929-02-10 Real Madrid CE Europa 5 0
#> 4 Spain 1 1928 1929-02-10 Real Sociedad Athletic … 1 1
#> 5 Spain 1 1928 1929-02-12 Racing Santander FC Barcel… 0 2
#> 6 Spain 1 1928 1929-02-17 FC Barcelona Real Madr… 1 2
#> 7 Spain 1 1928 1929-02-17 Athletic Bilbao Espanyol … 9 0
#> 8 Spain 1 1928 1929-02-17 Atletico Madrid Real Soci… 0 3
#> 9 Spain 1 1928 1929-02-17 Real Union Racing Sa… 3 1
#> 10 Spain 1 1928 1929-02-17 CE Europa Arenas de… 5 2
#> # … with 23,905 more rows, and abbreviated variable names ¹goals_home,
#> # ²goals_visitor
#> # ℹ Use `print(n = ...)` to see more rows