Cheat sheet

On this page you will find a collection of useful PDF files and code snippets.

These are optional lookup resources. Use the RStudio IDE and Base R sheets to find a reminder for a task you are practising; they are not a checklist of everything to learn at once. The Advanced R sheet covers additional topics beyond the core beginner workflow and can wait until you need that depth.

RStudio IDE Cheat Sheet

RStudio IDE cheat sheet, page 1 of 2: editor, console, environment, debugging, package development and project workflow. Use the linked PDF for the complete reference.
RStudio IDE cheat sheet, page 2 of 2: keyboard shortcuts grouped by task. Use the linked PDF for the complete reference.

Download RStudio IDE Cheat Sheet

Base R Cheat Sheet

Base R cheat sheet, page 1 of 2: help, working directories, packages, vectors, selection and data structures. Use the linked PDF for the complete reference.
Base R cheat sheet, page 2 of 2: programming, mathematical and statistical functions, strings and factors. Use the linked PDF for the complete reference.

Download Base R Cheat Sheet

Advanced R Cheat Sheet

Advanced R cheat sheet, page 1 of 5: environments and name lookup. Use the linked PDF for the complete reference.
Advanced R cheat sheet, page 2 of 5: data structures and their properties. Use the linked PDF for the complete reference.
Advanced R cheat sheet, page 3 of 5: functions, arguments, scope and evaluation. Use the linked PDF for the complete reference.
Advanced R cheat sheet, page 4 of 5: subsetting vectors, matrices, data frames and lists. Use the linked PDF for the complete reference.
Advanced R cheat sheet, page 5 of 5: subsetting, debugging, conditions and defensive programming. Use the linked PDF for the complete reference.

Download Advanced R Cheat Sheet