This portion of the analysis will focus on the power of the qdap package. It allows you to compare multiple documents over a wide array of measures. Our effort will be on comparing Teddy Roosevelt's 1908 written address and Ronald Reagan's 1982 speech. For starters, we will need to turn the text into data frames, perform sentence splitting, and then combine them to one data frame with a variable created that specifies the President. We will use this as our grouping variable in the analysis. Dealing with text data, even in R, can be tricky. The code that follows seemed to work the best, in this case, to get the data loaded and ready for analysis. I've created two text files of the addresses that I scraped off the internet. Help yourself to the files on GitHub at https://github.com/datameister66/MMLR3rd.
The files are called tr.txt...