Finding Similar European Soccer Clubs (with R & Shiny)

March 17, 2015

(This article was first published on You Know, and kindly contributed to R-bloggers)

Are you a die-hard supporter of one European soccer (football) team (club)? Having a rough season, or just want to watch more matches with passion?

This European Team Finder analyzed 126 attributes of the top-flight teams in the marquee national leagues of Europe. Everything was considered, such as tackles, fouls, pass type, crosses, throw-ins, shots by body part, set pieces, and aerial battles.

  • England’s Premier League
  • France’s Ligue Un
  • German’s Bundesliga
  • Italy’s Serie A
  • Spain’s La Liga
Just select a team you already like and the widget instantly displays the most similar team from each of the leagues, along with the least similar team in cause you love to hate (Spurs?).
Under the hood, similarity is quantified in R by creating a Euclidean distance matrix. The resulting matrix is displayed by loading it into Shiny, then accessing the closest/farthest distances for a selected club.
Raw data was sourced from the excellent website

To leave a comment for the author, please follow the link and comment on their blog: You Know. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)