Get average rankings per league

get_league_averages(rankings, drop_leagues = TRUE)

Arguments

rankings

Rankings created by get_club_rankings

drop_leagues

Drop some miscellaneous teams that made it to Champions or Europa League but whose domestic league is not included. Default is TRUE.

Value

A data frame of league rankings

Details

Takes the rankings you create with get_club_rankings and gets league averages.

Examples

library(five38clubrankings) get_league_averages(rankings_2018)
#> # A tibble: 23 x 7 #> country league off_rating def_rating spi n_teams rank #> <chr> <chr> <dbl> <dbl> <dbl> <int> <dbl> #> 1 Spain La Liga 2.02 0.79 71.6 20 1 #> 2 Germany Bundesliga 2.02 0.906 69.1 18 2 #> 3 England Premier League 1.88 0.915 65.1 20 3 #> 4 Italy Serie A 1.76 0.96 63.1 20 4 #> 5 France Ligue 1 1.64 0.995 59.7 20 5 #> 6 Russia Premier League 1.38 0.988 54.7 16 6 #> 7 Brazil Brasileirão 1.27 1.20 47.0 24 7 #> 8 Portugal Primeira Liga 1.32 1.24 46.9 18 8 #> 9 Turkey Süper Lig 1.41 1.39 46.3 18 9 #> 10 Argentina Superliga 1.17 1.16 45.4 28 10 #> # ... with 13 more rows