Summary

In this chapter, we looked at how to address the massive volume of textual data that exists through text mining methods. We looked at a useful framework for text mining, including preparation, word frequency counts and visualization, and topic models using LDA with the tm package. Included in this framework were other quantitative techniques such as polarity and formality in order to provide a deeper lexical understanding, or what one could call style, with the qdap package. The framework was then applied to President Obama's six State of the Union addresses, which showed that although the speeches had a similar style, the core messages changed over time as the political landscape changed. Despite it not being practical to cover every ...

Get R: Unleash Machine Learning Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.