Please note that this book is a work in progress, the equivalent of a pre-alpha release. All the code should work, because if it didn’t the site could not be built. But there is still a lot of work to do to explain the historical methods under discussion. Feel free to leave feedback as issues on the GitHub repository, or to e-mail me.

This site is the draft of a book on how to use the R programming language to do work in digital history. This book began as course materials for my class “Programming in History/New Media.” This book is a work in progress; keep that in mind if you read any of the sections. If you find an error or have a suggestion, please open an issue at the book’s GitHub repository. You can also e-mail me. If you want to keep updated about the book’s progress, you can follow the feed for commits to this project.

About this book. This book has several parts. A preliminary sections introduces you to R and why you might want to use it for digital history. The first main section is on working with data: it teaches you how to manipulate the kinds of data that historians work with. It is also intended to get you comfortable in working with R, and to serve as a reference. The most important section help you work through several actual digital history projects. This section will show you how to go from importing data to generating historical insights. A final section introduces you to some advanced techniques that you may need as you develop your skills further.


Working with Data

Digital History Applications

Advanced Techniques