the-fourth-r

Introduction

Welcome to the Dickins lab R learning resource. As well as being the title of a novel “the fourth R” alludes to the concept of the three Rs, that is: Reading, wRiting and aRithmetic, skills considered essential for accessing wider learning. R arguably deserves a place in this list. R is a high-level language with strengths in statistical calculation and graphics. Learning R will give you the ability to program a computer, analyze many types of data and construct visually appealing and informative graphs to represent data and analyses.

This page provides a starting point for R learning. It can be viewed online, but to follow along interactively you also need to download a copy of the GitHub repository on which this page is based.

Download a Copy

You may download a copy of this “repository” by clicking on this link. This will download a copy of a folder called “the-fourth-r-main” on your computer. The folder is zipped and your browser is likely to have placed it in your “Downloads” folder. Please ensure you unzip its contents (“Extract All” if using Windows) and move it to a convenient location such as your Desktop.

Following Online

Please follow the links in this table to view content online:

Level Skill Location Link
1 what is R? what-is-r/ Slidify Presentation
2 basic plots and tidy data the-fourth-r-main/docs/ HTML R Markdown
3 heat maps the-fourth-r-main/ Jupyter Notebook
4 time series the-fourth-r-main/ Jupyter Notebook
5 bonus material the-fourth-r-main/ GitHub Markdown

To do:

Notes:

Installing R

If you have your own computer it is easy to install R. You can do so via the Comprehensive R Archive Network (CRAN). To do this you can use your search engine to find “R” and from the R homepage choose a local mirror site (direct link here). This works for all major operating systems. Mac users may, however, also find nightly builds on this bleeding-edge repository. While R is all you need, I strongly recommend using an “Integrated Development Environment” (IDE) while you learn. This is a piece of software that allows you to see extra information (such as what’s in the computer memory, help pages and plots) in an organised layout on your screen. Probably the most popular IDE, and the one I recommend, is the RStudio Open Source Edition.

Additional Tools

You may view Jupyter Notebook files using Jupyter Notebook or Jupyter Lab (recommended installation via ana|miniconda) and R Markdown documents can be read by RStudio. I may add some details on this in my tips and tricks repository or in the class, but you can simply follow the online links given above to view these files.

I recommend the following resources for further study of R: