Learning R
From your first steps in R and RStudio, through to programming, advanced R and writing your own packages.
We recommend R as a tool for the analysis of data. It is free, widely used, has many learning and support resources available, and can be very powerful. R is a programming-language based tool that does require a degree of up-front investment of time in learning to produce results and comfortably use the tool. For people who regularly want to manipulate or analyse data, and produce graphics, we suggest that this may be a worthwhile investment. We also produce R-based resources through our work in the Vector Atlas that can be easily reused and repurposed toward collaborators’ specific needs.
Introductory R resources
This is a great starting point for learning about R. 1-hour video introduction to why and how you might do data analyses in R, and to how the whole system works (R, RStudio, packages). This is not an introduction to statistics, but an introduction to how to do some things in R. The slides are available on a linked github page - look for the pdf on that link. There is also a (slightly older) blog version of the video here.
We strongly recommend setting the video quality to the highest available so that you can clearly see the code in the video. This can be done by clicking the settings cog in the bottom-right of the video panel, and selecting Quality to 1080p.
Getting Started with Data in R
Step-by-step written introduction to getting started using R. This takes you through installing R and RStudio, some introductory concepts. This page is the first part of a longer ebook that is also freely available and will walk you through further stages of learning to use R to produce graphs and basic statistical analyses.
RStudio Education
A series of links to educational resources curated by RStudio — from beginner, to intermediate, and more advanced topics.
Further R learning
R for Data Science (2nd edition)
This free ebook is a comprehensive guide to developing modern data science skills in R. It covers a wide range of methods for dealing with data — reading, writing, transforming, manipulating, and visualising. It does not teach modelling, but it does teach a range of foundational skills needed to get data into and out of models. This text also covers the tidyverse package, which is a ubiquitous group of R packages that have a consistent style of programming that is different from basic R, but widely considered more user-friendly.
R Programming
This is a popular R introductory to intermediate course and is free on Coursera from Johns Hopkins University. The course is a comprehensive foundation in fundamentals of base-R, but is a large commitment in time to complete and does not cover a number of modern areas of R-programming like tidyverse.
Advanced R
This book is for users of R ready to advance toward and beyond an intermediate level, through a deeper understanding of the functioning of the R language, and advanced functional programming and beyond.
R Packages
A step-by-step guide to smooth package development. Developing your own package to manage tools you regularly use is easier than you think!