Keele R Workshop


Date
Location
Dorothy Hodgkin 0.31, Keele University.

Welcome

In this workshop we’ll cover the motivation behind engaging in reproducible research methods, the basics of R, data wrangling, and data visualisation. In the afternoon we’ll look at some standard statistical methods using the general linear model.

We will finish off by looking at how you can use Binder and GitHub to engage in fully reproducible research.

Before the Workshop - Installing R and RStudio

You will probably want to bring a laptop for this course. Beforehand, you should install R (the language) and RStudio (the interface that helps us interact with R) - each is available for OSX, Windows, and various flavours of Unix. You can install R from here:

https://www.stats.bris.ac.uk/R/

And RStudio from here:

https://www.rstudio.com/products/rstudio/download/#download


The Course Material

You can download all the slides, R scripts, R Markdown scripts, and datasets that I will use in the workshop by clicking on the “Clone or download” buton on my GitHub repo and then selecting “Download ZIP”.

https://github.com/ajstewartlang/Keele_Sept_2019


Here you’ll find separate Morning and Afternoon folders. The Morning and Afternoon folders contain the slides, R and R Markdown scripts, and the data I use in the slides. Additionally, you’ll also find a Cheat Sheets and Handy Guides folder which contains a number of helpful reference resources.


Worksheets

You can view the first worksheet here:

http://ajstewartlang.github.io/Keele_2019/worksheets/worksheet1.html

And the second worksheet here:

http://ajstewartlang.github.io/Keele_2019/worksheets/worksheet2.html


Online R Resources

Below are some helpful R resources - it would be useful to look at the first one before the workshop.

Online introductory guide to R, RStudio, and R Markdown. This is a very clear and focused introduction to R, RStudio, and R Markdown. You probably want to read the first four chapters sooner rather than later…

http://rbasics.netlify.com


R for Data Science online book - Garrett Grolemund and Hadley Wickham This is the online interactive version of the book of the same name. It focuses more on the data science side of things than on statistics per se, and is very useful (especially in terms of data wrangling).

http://r4ds.had.co.nz


R Graphics Cookbook The following cookbook contains lots of useful examples of graphing using the ggplot2 package in R.

http://www.cookbook-r.com/Graphs/


If you have any questions in advance of the course, feel free to drop me an email (Andrew.Stewart@manchester.ac.uk)

Avatar
Andrew Stewart
Fellow of the Software Sustainability Institute and Senior Lecturer

My interests include open research and reproducibility, data science, experimental psychology, and psycholinguistics. I am a fellow of the Software Sustainability Institute.