An Introduction to R for Digital Historians
DHSS, 20 June 2017
Yannick Rochat
Junior Lecturer, UNIL
Some of my R projects…
What is R?
Who created it?
Who is using it?
What about R and History?
The Programming Historian
Humanities Data in R
Exploring Networks, Geospatial Data, Images, and Text
Arnold & Tilton (2015) http://humanitiesdata.org/
(You can find it on libgen btw.)
Computational Historical Thinking
Why computational history?
Lincoln Mullen’s datasets for historians
https://github.com/ropensci/historydata
Is R the only option?
Of course not…
… but the community is lively, ever growing, and super nice…
https://hackernoon.com/which-programming-languages-have-the-happiest-and-angriest-commenters-ebe91b3852ed
General Introduction
It’s an interpreted language
… meaning you can read it.
And with the pipes…
… you can even read it from left to right. (Might not seem cool but really, it is.)
http://r4ds.had.co.nz/pipes.html
«How I learnt to code in one year»
Where/How do I use R?
Console (meh…)
R GUI (better)
… or RStudio (great for beginners)
In particular, RStudio provides notebooks.
You can make computation inside of the script…
… export a webpage…
… or even export slides.
RStudio cheat sheets
Now, let’s move to the notebook
of this course and practice.