Improve your R skills in entertaining, inspiring and supportive sessions moderated by your own colleagues.
The NSC-R Tidy Tuesday workshop sessions are inspired by the Tidy Tuesday initiative, which was aimed at providing a safe and supportive forum for individuals to practice their data processing and visualization skills in R while working with real-world data.
Sports in general and football (soccer) in particular provides a sheer endless source of open data that can be explored at various levels (player, team, match, competition) and from various perspectives. In this meeting Wim Bernasco used open data about football borrowed from a GitHub repository maintained by James Curley (James P. Curley (2016). engsoccerdata: English Soccer Data 1871-2016. R package version 0.1.5 DOI: 10.5281/zenodo.13158).
The engsoccerdata
repository contains data on football matches from the UK Premier League and other European football leagues. In this Tidy Tuesday used data from almost a complete century (1929-2020) of matches in the Spanish League called La Liga.
We tried to answer a couple of simple questions:
Is it true that there are less goals today than in earlier days?
Is the number of goals related to the season of the year?
Is playing home really an advantage?
If so, has this advantage changed over time?
Wim Bernasco is a senior researcher at the Netherlands Institute for the Study of Crime and Law Enforcement (NSCR) and a professor in Spatial analysis of crime at the School of Business and Economics at the Vrije Universiteit Amsterdam. Most of his work in criminology is about the geography of crime, offender decision making and situational causes of crime.
To download files from GitHub you can:
Clone
the repository to create a local copy in your computer. To clone a repository, follow the instructions here.
Alternatively, you can:
ZIP
. To do this, go to the repository and click on the green code
button, then select download ZIP
. Unzip the downloaded file into a folder on your local computer.raw
button. Then right click on the new page and select save as
. Don’t forget to put the proper extension in the save name, like .R
or .Rmd
.
For attribution, please cite this work as
Bernasco (2022, March 22). NSC-R Workshops: NSC-R Tidy Tuesday. Retrieved from https://nscrweb.netlify.app/posts/2022-03-22-nsc-r-tidy-tuesday/
BibTeX citation
@misc{bernasco2022nsc-r, author = {Bernasco, Wim}, title = {NSC-R Workshops: NSC-R Tidy Tuesday}, url = {https://nscrweb.netlify.app/posts/2022-03-22-nsc-r-tidy-tuesday/}, year = {2022} }