NHS-R Workshop: Understanding Functions in R – 5 June 2024

  • Wednesday 5 June 2024 with Fran Barton
  • 09:30am until 11:00am (UK time) with optional +30 mins for questions

Course Description:

This is an introductory-level workshop aimed at analysts who can write R code but who don’t really get what functions are yet.
We’ll be turning some repetitive code into functions, and learning:
– how to make a function;
– what makes functions useful for analysts.

I coded for ages before I understood what the point of functions was. And then I went through the torment of trying to learn how to use them! Now I use them all the time and I would never go back. This workshop will explain why, and you’ll be learning through doing.

Pre-requisites: you are someone who can write at least some basic R code. To play along, you will need to have R, and RStudio or VSCode, installed and working on your computer. Ideally you will also be able to clone a GitHub repository into an RStudio project, but if not the code can be emailed out as a zip file instead.


Please register via the Sign up link in the right panel.
You will need to register as a member of the NHS-R Community to register for NHS-R Events.

You will receive a confirmation email, further workshop information including the calendar invite with the Zoom link to join the workshop will be sent out to you nearer the date.

Please note: This course is limited to Core members – details are in the NHSR Way book.

For further information, please contact: nhs.rcommunity@nhs.net

Event Speakers

Fran Barton

Data Analyst

Fran Barton works as a data analyst for Nottingham University Hospitals, and has been messing around with R since 2019. Previously he worked as an analyst and "the website guy" in a tiny voluntary sector organisation, where he developed a nasty allergy to Microsoft Excel.

Event Type


Event Date

June 5, 2024

Event Time

9:30 am - 11:00 am

Event Venue


Event Capacity


Available Places


Event Registration

Only authorised members can sign up to this event, please log in first to register.

Share this Event via: