WEHI R Course

Author

Shian Su & Kathleen Zeglinski

Published

September 15, 2025

Preface

Code-based analysis is an increasingly important skill for modern biomedical research. The R coding language enables user-friendly data tidying and transformation, and creation of publication-ready graphics. R is also core to bioinformatics research, supporting all types of ’omics data analysis, and general statistical analysis too.  

Designed for complete coding beginners, this course will introduce data wrangling, data visualisation, and basic data analysis in R. We will start by covering the foundations of R, and the user-friendly ‘tidyverse’ software, which is applicable to many areas of medical and clinical research, and beyond.

How to use this book

This course is divided into 4 sessions. In the first 3 sessions, we will cover the basics of R and the tidyverse, and in the last session, we will apply these skills to an example analysis. Each session is divided into sections, which are designed to be completed in order. Each section contains a mix of text, code, and exercises.

Code is shown in blue, with the output below it in grey, just like it would show up in the R console.

# This is an R code block
# You can run this code by copying it into the R console
1 + 1
[1] 2

You can run the code yourself by copying it (using the copy button in the top right of the code block) and pasting it into R on your computer.

Practice exercises will appear in purple boxes:

ImportantPractice exercises

Multiple choice questions will appear as below. Click on the circle next to your chosen answer to see whether it is correct or not

1. Which country was R invented in?

USA

New Zealand

Australia

France

A detailed explanation of the solutions to practice questions can be found by clicking on the grey ‘Solutions’ text like so:

Solutions

R was invented by Ross Ihaka and Robert Gentleman from the University of Auckland as a programming language to teach introductory statistics

Acknowledgements

We would like to thank Kerry Ko, Brendan Ansell and the WEHI education office for their work in organising and facilitating this course. We would also like to thank all of our instructors and tutors for making this course possible.

We acknowledge that this course is prepared and delivered on the unceded land of the Wurundjeri people of the Kulin Nation. We pay our respects to their Elders past, present, and emerging. We also acknowledge that sovereignty was never ceded, and that this always was and always will be Aboriginal land.