This lesson is in the early stages of development (Alpha version)

Introduction to R - theory sessions

This is a condensed introduction to R and RStudio. We have aimed to provide you with the basic information you need to tackle statistics and machine learning. It is a big task to learn a programming language especially if you have no experience. You will not be fluent in R by the end of this session, but hopefully you will be off to a good start.

By the end of this workshop, students will know how to:

Prerequisites

  • Participants need to have complete pre-worksheet to ensure all the software and packages needed for this course are installed.
  • Participants understanding file management on their operating system.

Schedule

Setup Download files required for the lesson
00:00 1. RStudio Layout, navigating the IDE, project setup How is RStudio layed out?
How do we create a project and why is it important?
00:05 2. Seeking help Where can I find help?
00:10 3. Calculating in RStudio How do we process mathematical operations in RStudio?
00:20 4. Variables and assignment What can we store in variables?
What is good practice for variable naming?
What can I do with variables?
00:40 5. Vectors and vectorisation How do we mange many variables efficiently?
01:00 6. Flow control How do we get our code to react dynamically?
How do we delegate repetitive task and decisions?
How do we make our software robust to a wider set of use cases?
01:30 7. Functions How do I make my own functions?
Why would I want to make my own functions?
01:50 8. Lists and Data frames What other data structures are there?
02:00 9. Manipulating data frames How do I access the data stored in data frames?
02:30 10. Loading data into R How do I get my own data into RStudio?
02:40 11. Packages in R How do I install packages?
How do I get help with packages?
02:45 12. Plotting in R with ggplot2 How do I create plots?
How do I use data sets to populate my plot?
03:00 13. Practical session Can you apply the theory to some practical problems?
05:10 14. Practical session answers NA
05:10 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.