Text Analysis in R

Kasper Welbers, Wouter van Atteveldt, Kenneth Benoit

Communication Methods and Measures · 2017 · 266 citations · 37 references

DOIFull text

Open access

Concepts

TL;DR

Computational text analysis is a rapidly growing field with many applications, but its adoption is hindered by the need for specialized techniques and software that are not widely available in standard statistical packages. This paper aims to lower these barriers by outlining the general steps of a computational text analysis project and showing how each can be executed in R. The authors present a step‑by‑step guide and practical examples that illustrate how to perform each operation with R’s text‑analysis packages. The results demonstrate that R’s packages enable straightforward execution of advanced text‑analytics tasks.

Abstract

Computational text analysis has become an exciting research field with many applications in communication research. It can be a difficult method to apply, however, because it requires knowledge of various techniques, and the software required to perform most of these techniques is not readily available in common statistical software packages. In this teacher’s corner, we address these barriers by providing an overview of general steps and operations in a computational text analysis project, and demonstrate how each step can be performed using the R statistical software. As a popular open-source platform, R has an extensive user community that develops and maintains a wide range of text analysis packages. We show that these packages make it easy to perform advanced text analytics.

References

37