DEV Community

Cover image for A roadmap for learning R

A roadmap for learning R

Some folks at work expressed an interest in how to get started learning R. There are lots of resources out there, but I thought I'd share with you what I shared with them as a pathway that I followed that's working out well for me.

You don’t need all these steps but I suggested starting from 1 and working your way through them that way.

  1. Read R for Data Science (https://r4ds.had.co.nz/). I only made it to Chapter 16 and could already do a lot of the stuff I wanted to do. This book takes a really nice approach of FIRST getting you some results and then working through some programming-specific stuff, so you won’t just be working through a lot of programming concepts without knowing what you are working towards.Β 
  2. There are exercises (which I largely skipped), but if you do them and want to check your answers, you can read the companion book here: https://jrnold.github.io/r4ds-exercise-solutions/
  3. If you get stuck, there is a super helpful Slack channel where you can post questions according to the chapter you are on and people will help you. Once you get the hang of manipulating data, I encourage you to practice with some datasets from the Tidy Tuesday challenge. This is a weekly challenge where people create visualisations of the same dataset. It is GREAT for learning how others do things because they often share their code and you can learn a lot. You don’t have to wait for a new dataset, go ahead and look for old datasets that interest you!
  4. You can view past TidyTuesday submissions and their codeΒ  here:Β https://nsgrantham.shinyapps.io/tidytuesdayrocks/ 1.If you want to participate in posting your own visualisations, you’ll need to join Twitter. Here’s a free guide on how to get started on Twitter for R programmers:Β https://www.t4rstats.com/
  5. If you like podcasts, there is also a TidyTuesday podcast with short episodes that cover the previous week’s submissions and helpful tips.

I hope that helps you on your journey. Exciting times ahead :).

Image credit: Photo by oxana v on Unsplash

Top comments (0)