early bird 2For this course we offer a special 10% discounted Early Bird rate for those who book early (up to 4 weeks before the session runs).

Please book your place on-line below:

Please book your place on-line below:

Course Rates

EARLY BIRD RATE (valid only until 4 weeks before each session runs)

£153.00: Imperial College only.

£279.00: External rate.


£170.00: Imperial College only.

£310.00: External rate

2019/2020 Dates




Time and Location

The courses will be run via Microsoft Teams for an unforseeable future. 

Exact details will be sent a week prior to the course date

r prog image 1Please book your course on-line by clicking on your chosen date above. Any problems with booking, please contact  +44 (0)20 7594 1754 or stathelp@imperial.ac.uk

This is a 1 day command based course. This session is not related to any specific area of research.

The purpose of this course is to learn how to build a program from scratch: issues to be considered before writing a code and basic steps a programmer should follow to successfully find a solution.

We will first present an overview of R tools focusing on those that will be more useful when programming. We will show some techniques that can be used in several situations.

Entry Requirements: some familiarity with R.

Course Outline (2019/2020)

Getting started with R

  • The R workspace
  • Objects in R
  • Functions and Operators

Data-types in R

  • Vectors and Matrices
  • Data frames and lists
  • Vectors and matrix Operation

Data Input/Output

  • Reading and writing data
  • Managing data frames
  • Graphs
  • R Files : scripts and functions

Accessing elements in r

  • Subsetting from R objects
  • Logical indexing
  • Subsetting elements from data frames

Programming components

  • Control structures
  • Loop functions – the apply family
  • Generating random numbers

How to make your program more efficient

  • Vectorization and Pre-allocation
  • Debugging

Tutor: Krupa Shukla

This course has been approved by the Royal College of Physicians for 6 CPD credits.

If you are not able to attend on the day, please contact stathelp@imperial.ac.uk as soon as you can.