R Basics

FC rSTATS aim to make the basics of learning R accessible to those that wish to learn, but may not have the advantage of access to paid resources or a background in maths of programming.

We recommend that you get RStudio installed with the instructions here, then follow along with our basics series listed below. The examples within certainly aren’t exhaustive, but they will give you an accessible introduction into the basic concepts with easy-to-follow examples based on topics around football.

  1. Numbers, Variables & Strings
  2. Comparisons & Logic
  3. If Statements
  4. For Loops
  5. While Loops
  6. Lists
  7. Packages
  8. Creating Functions
  9. Random Numbers with Expected Goals

Once you have a grasp of the concepts above, you should aim to move on to our other tutorials for R. Here, you’ll learn about cleaning and analysing data in R, as well as visualisation of your insights.

If you have any questions, recommendations or requests, please get in touch!

This is a R conversion of a tutorial series by FC Python. I take no credit for the idea and have their blessing to make this conversion. All text is a direct copy unless changes were relevant. Please follow them on twitter and if you have a desire to learn Python then they are a fantastic resource!