Microcourse: The world's shortest introduction to R (self-paced online)
Thinking about getting started with R? This free, self-paced video course will get you off the ground!
Have you been thinking about learning to analyse your data in R but are unsure where to start? This a gentle introduction to R for learners with no previous programming experience. It is not a classical programming course – we will not be talking about for-loops and variable types. These topics may become important to you later but you don't need them right at the start to get going. My goal is to give you the very basic toolkit you need to get you off the ground doing practical data analysis in R, as quickly as possible. Once you have those basics and are applying them to your own data, you will naturally pick up more advanced topics along the way.
This course is pre-recorded, meaning that you can work through the material when-ever and where-ever you feel like it. If you get stuck, you can ask for help in the discussion forum and I will help you out very soon.
Welcome!
Just to get to know you a bit better...
Why bother learning R?
Why do YOU want to learn R?
R vs RStudio
Installing R
Installing RStudio
Opening up RStudio for the first time
Using R as a fancy calculator
Variables
Practice creating variables
Practice creating variables (solution)
Quiz on variables
Functions
Vectors
Practice vectors and functions
Practice vectors and functions (solution)
Download data
Introduction to the data set
Setting the working directory
Reading in data
The importance of the separator
The importance of the separator (solution)
Column and row names
More fun with column names
More fun with column names (solution)
Indexing
Practice row names and indexing
Practice row names and indexing (solution)
Conditional filtering
Practice filtering
Practice filtering (solution)
Filter out observations with missing values
Filter out observations with missing values (solution)
Our first plot
Customising your graphs
Specify colours conditionally
Specify colours conditionally (solution)
Saving your graphs
R documentation
Make histograms
Make histograms (solution)
Calculating summary statistics
Performing statistical tests
Comparing groups
Comparing groups (solution)
Final thoughts
Feedback
BONUS: simple for loop
BONUS: practice simple for loops
BONUS: practice simple for loops (solution)
BONUS: more interesting for loops
BONUS: practice more interesting for loops
BONUS: practice more interesting for loops (solution)
BONUS: nested for loops