In 2007, I published theĀ Sample Annotated Paper in Econometrics in the Journal of Economic Education (JEE). That paper illustrated the structure of an econometrics paper: sections, presentation of descriptive statistics, results etc. Recently, a couple of colleagues and I published another paper in the JEE. That paper describes the use of R Markdown in teaching econometrics. Today I created this document which illustrates how the data for the original sample paper can be put together using R Markdown. This includes reading data, creating new variables, filtering observations, selecting variables, aggregating by groups, creating descriptive statistics tables, estimating regressions and presenting the results in a table. It is designed for my introductory econometrics class to help student put together their own empirical analyses. An earlier version of the document which included more complex manipulation (including reshaping and working with strings) is here.