The notes contained on this website are being written during the Spring 2022 semester.1 As such, expect frequent updates, but also expect to see a few typos here and there. If you notice anything out-of-place, please let us know!

You might see TODO scattered through, with some notes to the author. These will help you know what information is still to be added.

We hope to create notes for all course topics, but we will likely point to some external resources as well. Often, we’ll reference those readings inside of incomplete notes on this website in an “Additional Reading” section, with notes about how to tackle those particular readings.

Why R?

  • TODO: written by statisticians, for statisticians, i’m a statistician
  • TODO: why not python? nothing wrong with it, but see above
  • TODO: why not julia? maybe one day…

Why Base R?

  • TODO: https://en.m.wikipedia.org/wiki/Lindy_effect
  • TODO: 枯れた技術の水平思考
  • TODO:https://en.m.wikipedia.org/wiki/Gunpei_Yokoi#Lateral_Thinking_with_Withered_Technology
  • TODO: examples: poorman package
  • TODO: note about tinyverse, data.table, etc
  • TODO: base R, and then tidyverse


Source code and its output will always been written in a monospaced2 font.

Source code will be displayed with a subtle background. For example:

# this is some source code
x = 1:10
y = x + c(1, -1)

Code output will be displayed without a background. For example:

[1] "This is some output."

Often, output will immediately follow its source.

x = 1:10
y = x + c(1, -1)
x + y
 [1]  3  3  7  7 11 11 15 15 19 19

There will usually be some additional hints from R that the output is output, like the [1] seen above. These context clues will become move obvious over time as you progess through the notes and learn about how R prints objects.


  1. Last semester, no instructor written notes were provided, instead the course only used external readings. We hope the time spent creating course specific notes will better help learners succeed in the course.↩︎

  2. A monospaced font is font such that each possible character (and space) occupies the same amount of horizontal space on a screen. This is standard practice when coding. This is opposed to a proportional font you might see when typing prose.↩︎