Year Two Instructions

Last year we got our hands dirty working through all of the chapters in Text Analysis with R for Students of Literature. This year, we’ll do a “deep(ish) dive” into dplyr and xml2, two awesome R packages developed by R-Star, Hadley Wickham.

In preparation for the year two R sessions, you should:

  1. Make sure that you have everything in order (see instructions from last year)
  2. Carefully review chapter 7 of *Text Analysis with R for Students of Literature* and be sure you understand all the practice exercises on page 72 as well as the coded answers to those questions that are found on pages 182 – 183.
  3. Skim chapter 10, especially sections 10.5 and 10.6.
  4. Copy a specially marked up version of Hamlet from my website: (or you can download, unzip, and save a version here.)
  5. Copy (or unzip) and save the xml file as “hamlet.xml” and place it inside the data folder of your main TextAnalysisWithR folder.

Start Up Code:

Additional Code