Overview:

This 5-day course offers a comprehensive journey in R from beginner to advanced levels with a focus on practical data analysis, visualisation and real-world applications in health data science. Starting with the basics of R, including data types, subsetting, and control flow, participants will advance to more intermediate topics such as data manipulation, writing functions, and creating visualisations with ggplot2.

Later sessions cover more advanced techniques like iteration, vectorisation, and efficient modelling using purrr and broom, all within the context of health data science applications. Practical exercises and a mini-project ensure hands-on experience with health-related datasets, concluding with dynamic reporting using Quarto.

Check out the feedback from our previous workshop:

“This is one of the best introduction to R course, and the instructor, Ewan, is superb. He tried best to cover maximum necessary concept and update us with latest libraries.”

 

“I found the course very practical and informative, I was able to follow along despite having no previous experience, so it was well positioned for my experience level.”

 

“The presenter, Ewan, was well prepared and helpful. The communication re: preparedness for the workshop and the expectations was clear.”

Agenda

  • Getting Started with R

    • 13:30 Welcome; what to expect when learning R
    • 13:50 Objects and assignment; vectors; data types; missing values
    • 14:25 Practical
    • 14:50 Break
    • 15:00 Data frames; importing and exporting data; subsetting
    • 15:50 Break
    • 16:00 Practical
    • 16:30 Control flow: running code conditionally with if, else and ifelse()
    • 16:50 The week ahead
  • Writing Functions and Data Manipulation

    • 13:30 Recap and questions
    • 13:40 Using and writing functions in R
    • 14:10 Practical
    • 14:40 Break
    • 14:50 Introducing the tidyverse for data manipulation; pipes; importing data; selecting,
      filtering and sorting
    • 15:35 Practical
    • 16:05 Break
    • 16:15 Creating and modifying columns; recoding variables
    • 16:55 Wrap-up
  • Working with Data

    • 13:30 Recap and questions
    • 13:40 Keeping an analysis project organised
    • 14:00 Practical
    • 14:25 Break
    • 14:35 Merging and appending datasets
    • 15:05 Practical
    • 15:30 Break
    • 15:40 Reshaping data between ‘wide’ and ‘long’ formats
    • 16:05 Grouping and summarising
    • 16:30 Practical
    • 16:55 Wrap-up
  • Visualisation, Reporting and Dates

    • 13:30 Recap and questions
    • 13:40 Creating plots with ggplot2
    • 14:25 Practical
    • 14:55 Break
    • 15:05 Dynamic reporting with Quarto
    • 15:35 Working with dates and times
    • 16:15 Break
    • 16:25 Mini project: introduction
    • 16:55 Wrap-up
  • Efficient Iteration and Reusable Code

    • 13:30  Mini project: walkthrough and questions
    • 13:50 How to work efficiently with lists in R; introduction to purrr
      Worked example: fitting many models at once with purrr and broom
    • 14:35 Break
    • 14:45 Practical
    • 15:15 Programming with data frames: Applying the same operation to many columns
      with across
      Writing your own reusable dplyr and tidyr functions
    • 15:50 Break
    • 16:00 Practical
    • 16:25 Efficient text manipulation with regular expressions
    • 16:55 Wrap-up; where to go next

Audience:

This course is ideal for health data science professionals looking to strengthen their R skills in a structured and applied learning environment.

Capacity:

This workshop has a capacity of 50 attendees.

Cost:

The cost of this workshop is £175 per space. A number of reduced spaces are reserved for students, interns and members of the HDR community. If you would like to check your eligibility for a discount, please get in touch with us at Learn@hdruk.ac.uk.

This curriculum is accredited by The CPD Certification Service.

cpd-logo-mini.jpg

Registration

To register for this workshop please click below.

Register