This is a companion to the textbook Principes of Statistical Analysis. It contains some R code that illustrates the concepts and tools introduced in the textbook. Some familiarity with R is assumed, although no advanced knowledge is required. The code is meant to be relatively simple, yet useful, at least for novices. (No real effort was made to optimize code.) This companion book is only meant to serve as an entry point to using R for data analysis.

The chapters should be numbered as they are in the textbook, while the sections are not. The data not taken from packages is available here.

This document was created with bookdown using RStudio.