intRo Tutorials
By Billy Fryer in R
August 12, 2021
I have created a series of tutorials to help those new to sports analytics become learn about the programming language R! These tutorials were used during Fall 2021 to help teach the Sports Analytics Club at NC State and were recorded. The link to the recordings as well as the code are linked below:
Link to Code Link to Recordings
The topics covered in each tutorial are listed below:
intRo 1- Basics of R: This video includes coding basics such as data structures, data types, good commenting practices, and how to use the help function. Skills also taught are tidyverse functions useful for manipulating data such as select() and mutate(). In the recording, skip to 17:15.
intRo 2- Plotting in ggplot2: This 1st part of the tutorial describes how to read in data as well as very basic web scraping html tables. The web scraping information is only found in the code, due to time constraints, this was not recorded. The 2nd part of the tutorial is about where to find data on the internet. A lot of the data sources can be found on Brendan Kent’s website https://brendankent.com/2021/03/09/free-sports-data-sources/. Finally, this tutorial introduces plotting with the ggplot2 package by walking through the process of making a histogram with data from https://kenpom.com. In the recording, skip to 14:11
intRo 3- Sharing Your Content: This tutorial is about sharing your code and graphics. This takes users through the basics of using Github and also provides some tips on sharing your graphics on Twitter. In the recording, skip to 9:30
intRo 4- R Markdown: This tutorial is an introduction to R Markdown, primarily making PDFs or HTML files with LaTeX. The tutorial describes text formatting as well as writing code in R Markdown. In the recording, skip to 13:00
- Posted on:
- August 12, 2021
- Length:
- 2 minute read, 320 words
- Categories:
- R
- Tags:
- intRo Tutorials
- See Also: