Chapter 2: Programming with Data¶
Author: Sean Raleigh
Digital resources supplementing the chapter
Markdown example¶
Figure 2.1 of the text shows example uses of Markdown in a mathematical document. You can view that document in several ways here.
Notebook examples¶
Figures 2.2 through 2.4 of the text show example notebooks. You can view those notebooks online here.
- RMarkdown notebook from Figures 2.2 and 2.3
- That notebook rendered to PDF
- Jupyter notebook from Figure 2.4
- That notebook rendered to PDF
Code examples¶
Section 2.3 shows many small snippets of code while teaching coding best practices. Some are written in R and some in Python. The documents below contain those code snippets together with paragraphs from the text that explain them.
- RMarkdown document with R code from Section 2.3
- In order to function, that document needs this R code file in the same folder.
- That same document rendered to a PDF
- Jupyter notebook with Python code from Section 2.3
- That same notebook rendered to a PDF