Chapter 12 What next

You can skip this chapter if:

  • You have no desire to take R any further

I learned R in 2006, as part of my undergraduate degree. For the next ten years I used it sporadically, mainly when my stats got complicated and I could no longer rely on other statistical softwares to help. Starting with the complicated stuff meant that I always had a lot of heartache. In 2016, I finally took the plunge and deleted those other softwares, meaning I had to use R (and my newly discovered R Studio) for everything. It was the best decision I made.

If you want to get better at R, you need to use it. Use it for the little things as well as the big things. Nowadays, I find it easier to work in R than in the other statistical softwares.

In this, short, chapter, I will talk about some of the ways I’ve found that have helped me take R further.

12.1 github

I would encourage anyone who’s interested in developing their R or coding skills to get a github account. Github is a mechanism for sharing code and resources.

If you get yourself a free github account you can create a repository where you can store project files. For example, here’s the repository for this book and here’s a repository for processing data in WhatsApp chats. With code freely available and accessible, you can improve your skills by seeing what others do, and what you might like to start doing.

There are many tutorials about github, here are a few to get you started:

And you will find many more on the internet.

There are a few advantages to using github:

  • Collaboration is easier!
    • With ‘pull requests’, it can be clear what you and what your colleagues have contributed to a project.
    • You can roll back mistakes easily - and share all your code quickly
  • You can work on projects wherever you are
    • You can pull git projects from any computer, which means you can work more easily.

One thing to be wary of on github is the uploading of data. While you can upload your data to github to make your project sharing easier, you should always make sure you’re happy for that data to be public facing!

For example, if you’re working on survey data, you can only upload that data if all your participants have agreed for the data to be publicly facing.

Private repositories are a way around this - but they can cost a subscription to github.

12.2 Experiment and build

Following on from getting a github is the biggest tip I can give you. Start to experiment with what you can do.

Experimenting always means failing. I particularly like this YouTube video of someone trying to create an algorithm to make recipes because it faithfully shows the failing process - Sabrina: I taught an AI to make pasta

You cannot expect to get better if you don’t make mistakes. Why don’t you take a scroll through my github to see all the abandoned and broken projects I have.

12.3 The R Community

Finally, I have also found the R Community to be a great resource. While back in 2006 I thought it was an unfriendly place, I’ve really warmed to it.

You can find great blogs and resources from RStudio including:

But there are also resources like the:

  • #Rstats on Twitter - where people post queries or tips or tricks or just funny memes.

  • And there are also lots of @RLadies communities to support women to use R more confidently. This is part of the RLadies initiative.