Recent Posts

Blog RSS

More Posts

Let’s imagine a situation. You generate some number(s) in R or Python or whatever and want to include these numbers in a LaTeX document. Most people (I assume) just copy/paste the numbers from the console to the document.1 This means that if you update the analysis, your document may be reporting incorrect information. There are some solutions to this, of course. One solution is to mix the code together with the document (rmarkdown users will be familiar with this).

CONTINUE READING

Last week I taught a quick workshop on R. It includes the basics of working in “package-less” R: data types, loops, the “apply” family, etc. PDF slides and html content for easy copy/paste are available here.

CONTINUE READING

Introduction to Math for Political Scientists, AKA “Math Camp,” starts on Monday. The class is an absolute blast to teach, but that’s not the subject of the post. I’ve made the slides for the course in rmarkdown because I mix math and R code together.1 I can then export them fairly easily to pdf slides via the rmarkdown package, which relies on pandoc to convert the markdown to latex and then compile the latex.

CONTINUE READING

I taught an Intro to Data Analysis and Reporting with R course at the University of Gothenburg over the last couple days. Slides ad a more copy/paste friendly html page are available here.

CONTINUE READING

I’ve always wanted one of those wall maps that you can push pins into to show where all you’ve been. However, with college and grad school and whatnot, I’ve never really had the energy to put one up, since I know I’ll just have to take it down the next time I move. Then, something occurred to me: I like maps. I like traveling. I like R. So why not spend a night putting them all together?

CONTINUE READING

Teaching