![French footballer Kylian Mbappé crossing his arms and smiling.](https://media.giphy.com/media/woZz3KFzQJE6RHGIWQ/giphy.gif)
Mbappé got swag (Equipe de France de Football via Giphy)
tl;dr
I wrote an R Shiny app that tells you how many players at World Cup 2018 were younger than you. It’s designed to make you feel old. You’re welcome.
The World Cup Final
So the World Cup is over for another year.
I managed luckily to get tickets for the final, where Karpatlya—a Hungarian diaspora in Ukraine—overcame the powerful Northern Cyprus team on penalties at the Queen Elizabeth Stadium in Enfield, London.
![Two tickets to the CONIFA World Cup final.](/post/2018-07-17-how-many-world-cup-footballers-were-younger-than-you_files/tix.png)
Extremely rare and valuable tickets for the (CONIFA) World Cup final
Another successful tournament from the Confederation of Independent Football Associations (CONIFA).
It didn’t come home
Oh and also the far-less popular FIFA World Cup has also finished.
Wonderkid Kylian Mbappé picked up the young player of the tournament as France lifted the trophy for the second time in their history.
Yes, 19-year-old Mbappé is young enough to have been born after France’s last World Cup win in 1998. That makes me feel old.
It seems only yesterday that I was dreaming of starting alongside hall-of-famer Bermudan Shaun Goater in the extremely successful Manchester City squad at the turn of the millennium.1 (That reference probably dates me quite well.)
Obviously I can still make it as an elite footballer. Right? What better way to find out than to build an app with R Shiny.
The app
You can clone the GitHub repo and run the app,2 or from an active R session you can run the following to download and run it:
shiny::runGitHub("wc18-age", "matt-dray")
The app depends on the packages {shiny}, {shinythemes} and {DT}. I used the data set in the AllezCannes/WorldCupSquads GitHub repo, which contains player data scraped from Wikipedia by user philstraforelli.
The app asks merely for your birth date—selectable from the dropdown menu—and calculates the number and percentage of players younger than you, with an interactive table that lists who they are.
A colleague suggested that wasn’t enough punishment. So I updated it to tell you how many of the players you could be parent to (assuming you had them when you were age 18).
Here’s some solid reviews I’ve received so far:
Very depressing
I knew I was too old to become a great footballer
Just what I needed to see
Enjoy! And take inspiration from Kazuyoshi ‘King Kazu’ Miura, a Japanese 51-year-old (born 1967) who is still playing at time of writing. He’s apparently just played a match for Yokohama FC alongside 16-year-old Koki Saito (born 2001), who in theory is young enough to be his grandson!