Statistical Programming training

R Starter and R Programming - Courses 1&2
F207 - 2 days

This workshop combines the F106 - Getting Started with R module on Day 1 and the F107 R Programming module on Day 2. Day 1 and Day 2 may be taken separately.

On Day 1, this workshop will introduce the open source R software for statistical computing and equip you to use R for basic data handling and statistical analysis. In the first part of the workshop, you will learn how to get data into R, how to manipulate that data in R and how to explore it using numerical, tabular and graphical summaries. In the second part, you will discover how to analyse data in R using linear regression and analysis of variance. You will also be equipped with ways to find help on R, so that following the workshop you will be able to build on the fundamentals you have learnt to expand your knowledge of R.

On Day 2, this workshop will increase your understanding of how to program in R to enable you to work more efficiently by writing code for re-use in routine analyses. It will also equip you to run simulations and implement novel or customised methods. This workshop introduces the fundamentals of R programming, looks at ways to improve the efficiency of R code, considers how to debug code and how to make use of multiple cores (on Windows).

Topics covered

Day 1
  • Introduction to R and RStudio (an open source front-end to R)
  • Data import and export, data handling
  • Basic data summaries, tables and graphics
  • Linear regression
  • Analysis of variance
  • Learning more
Day 2
  • Overview of data structures in R
  • Flow control (for loops, if/else blocks)
  • Efficient code, vectorization
  • Running code on multiple cores
  • Writing functions
  • Error handling and debugging

Software Tools Used

We regularly run this course using the following software packages, but please just contact us if you'd like to discuss using your current in-house tool instead:

Who should attend?

  • Statisticians, data analysts or other professionals who would like to use R for statistical analysis.

Recommended Preparation

Knowledge of basic statistics, such as taught in F101 Basic Stats for Scientists. The workshop assumes no previous experience of R.

Please also see the following workshops:

There are no public workshops currently scheduled for this course - please contact us to learn when we'll next be running it.