Cheat sheets are brilliant: whether you’re learning to program for the first time or you’re picking up a new language. Most data scientists are probably programming regularly in multiple languages at any given time: cheat sheets are a handy reference guide that saves you from googling how to “do that thing you know I did it in python yesterday but how does it go in stata?”
This post is an ongoing curation of cheat sheets in the languages I use. In other words, it’s a cheat sheet for cheat sheets. Because a blog post is more efficient than googling “that cheatsheet, with the orange bit and the boxes.” You can find my list of the tutorials and how-to guides I enjoyed here.
R cheat sheets + tutorials
- Getting started with R and Shiny by Oliver Keys. Just start here!
- Data exploration in R.
- A whole list of cheatsheets from R-blogger.
- Starting out with regression in R.
- Using census data in R.
- Australian elections data in R.
- R studio cheat sheets.
Python cheat sheets
- A basic, no-frills cheat sheet. Perfect for the office wall.
- Learning to code Python cheat sheet.
- Scientific python cheat sheet: doesn’t look printable, but very thorough.
- The “For Dummies” version. FYI there is also a “Python for kids” book in this series. My eldest (10 years) borrowed it from the library the other week and if you’re looking to learn python, learning it with your kid isn’t a bad way of doing it in my view. There are actually quite a few books on the subject.
Stata cheat sheets
- There is a whole list of them here, organised by category.
- Stata cheat sheet, I could have used this five years ago. Also very useful when it’s been awhile since you last played in the stata sandpit.
- This isn’t a cheat sheet, but it’s an exhaustive list of commands that makes it easy to find what you want to do- as long as you already have a good idea.
SPSS cheat sheets
- “For Dummies” has one for SPSS too.
- This isn’t so much a cheat sheet but a very basic click-by-click guide to trying out SPSS for the first time. If you’re new to this, it’s a good start. Since SPSS is often the gateway program for many people, it’s a useful resource.
General cheat sheets + discusions
- Comparisons between R, Stata, SPSS, SAS.
- This post from KD Nuggets has lots of cheat sheets for R, Python, SQL and a bunch of others.
I’ll add to this list as I find things.