Text Analysis in R
Open accessThe DOI matches its Crossref record; 38 of the 38 references it cites were found in a registry or an index.
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
R: A Language and Environment for Statistical Computing
R Core Team (2025) · doi:10.32614/r.manuals · Cited by 352,181
(2003) · Journal of Machine Learning Research · doi:10.5555/944919.944937 · Cited by 32,337
Efficient Estimation of Word Representations in Vector Space
Mikolov, T., Chen, K., Corrado, G., & Dean, J. (2013) · arXiv · doi:10.48550/arxiv.1301.3781 · Cited by 26,568
Understanding Media: The Extensions of Man
Levine, S., & McLuhan, M. (1964) · American Quarterly · doi:10.2307/2711172 · Cited by 12,311
Introduction to information retrieval
(2009) · Choice Reviews Online · doi:10.5860/choice.46-2715 · Cited by 12,278
Introduction to Information Retrieval
Manning, C. D., Raghavan, P., & Schütze, H. (2008) · doi:10.1017/cbo9780511809071 · Cited by 11,288
The Stanford CoreNLP Natural Language Processing Toolkit
Manning, C., Surdeanu, M., Bauer, J., Finkel, J., Bethard, S., & McClosky, D. (2014) · Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations · doi:10.3115/v1/p14-5010 · Cited by 7,037
Griffiths, T. L., & Steyvers, M. (2004) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.0307752101 · Cited by 6,049 · cited 2×
“A simple but effective method is to filter on document frequencies (the number of documents in which a term occurs), using a threshold for minimum and maximum number (or proportion) of documents (Griffiths & Steyvers, 2004; Yang & Pedersen, 1997).”
BackgroundMethodThe Psychological Meaning of Words: LIWC and Computerized Text Analysis Methods
Tausczik, Y. R., & Pennebaker, J. W. (2010) · Journal of Language and Social Psychology · doi:10.1177/0261927x09351676 · Cited by 5,774 · cited 1×
“Dictionaries are also a popular approach for measuring sentiment (De Smedt & Daelemans, 2012; Mostafa, 2013; Taboada, Brooke, Tofiloski, Voll, & Stede, 2011) as well as other dimensions of subjective language (Tausczik & Pennebaker, 2010).”
BackgroundFlesch, R. (1948) · Journal of Applied Psychology · doi:10.1037/h0057532 · Cited by 5,391 · cited 2×
“, average word and sentence length, word and syllable counts) are also commonly used as an operationalization of concepts such as readability (Flesch, 1948) or lexical diversity (McCarthy & Jarvis, 2010).”
MethodA Comparative Study on Feature Selection in Text Categorization
Yang, Y., & Pedersen, J. (1997) · Cited by 4,790
Journal of Statistical Software
Leeuw, J. D. (2009) · WIREs Computational Statistics · doi:10.1002/wics.10 · Cited by 3,599
Lexicon-based methods for sentiment analysis
Taboada, M., Brooke, J., Tofiloski, M., Voll, K., & Stede, M. (2011) · Computational Linguistics · doi:10.1162/coli_a_00049 · Cited by 3,301
Text as Data: The Promise and Pitfalls of Automatic Content Analysis Methods for Political Texts
Grimmer, J., & Stewart, B. M. (2013) · Political Analysis · doi:10.1093/pan/mps028 · Cited by 3,297 · cited 4×
“Although this drastically simplifies text content, research and many real-world applications show that word frequencies alone contain sufficient information for many types of analysis (Grimmer & Stewart, 2013).”
BackgroundMethodInfluential(2000) · CrossRef Listing of Deleted DOIs · doi:10.1162/jmlr.2003.3.4-5.993 · Cited by 3,024
Structural Topic Models for Open‐Ended Survey Responses
Roberts, M. E., Stewart, B. M., Tingley, D., Lucas, C., Leder‐Luis, J., Gadarian, S. K., Albertson, B., & Rand, D. G. (2014) · American Journal of Political Science · doi:10.1111/ajps.12103 · Cited by 1,952
Data science and its relationship to big data and data-driven decision making
Provost, F., & Fawcett, T. (2013) · Big Data · doi:10.1089/big.2013.1508 · Cited by 1,568 · cited 1×
“1The term “data science” is a popular buzzword related to “data-driven research” and “big data” (Provost & Fawcett, 2013).”
BackgroundText Mining Infrastructure in R
Feinerer, I., Hornik, K., & Meyer, D. (2008) · Journal of Statistical Software · doi:10.18637/jss.v025.i05 · Cited by 1,252
topicmodels : An R Package for Fitting Topic Models
Grün, B., & Hornik, K. (2011) · Journal of Statistical Software · doi:10.18637/jss.v040.i13 · Cited by 1,072
tidytext: Text Mining and Analysis Using Tidy Data Principles in R
Silge, J., & Robinson, D. (2016) · The Journal of Open Source Software · doi:10.21105/joss.00037 · Cited by 941
McCarthy, P. M., & Jarvis, S. (2010) · Behavior Research Methods · doi:10.3758/brm.42.2.381 · Cited by 905
Wickham, H. (2014) · Journal of Statistical Software · doi:10.18637/jss.v059.i10 · Cited by 901
A Scaling Model for Estimating Time‐Series Party Positions from Texts
Slapin, J. B., & Proksch, S. (2008) · American Journal of Political Science · doi:10.1111/j.1540-5907.2008.00338.x · Cited by 684
More than words: Social networks’ text mining for consumer brand sentiments
Mostafa, M. M. (2013) · Expert Systems with Applications · doi:10.1016/j.eswa.2013.01.019 · Cited by 623
Customizing Sentiment Classifiers to New Domains: a Case Study
Aue, A., & Gamon, M. (2005) · International conference Recent advances in natural language processing · Cited by 437
Text Categorization with Support Vector Machines. How to Represent Texts in Input Space?
Leopold, E., & Kindermann, J. (2002) · Machine Learning · doi:10.1023/a:1012491419635 · Cited by 403
Crone, S. F., Lessmann, S., & Stahlbock, R. (2006) · European Journal of Operational Research · doi:10.1016/j.ejor.2005.07.023 · Cited by 220
Boumans, J. W., & Trilling, D. (2016) · Digital Journalism · doi:10.1080/21670811.2015.1096598 · Cited by 210
Strategic framing in the BP crisis: A semantic network analysis of associative frames
Schultz, F., Kleinnijenhuis, J., Oegema, D., Utz, S., & van Atteveldt, W. (2012) · Public Relations Review · doi:10.1016/j.pubrev.2011.08.003 · Cited by 196
Self-citationParty contestation and Europe on the news agenda: The 2009 European Parliamentary Elections
Schuck, A. R. T., Xezonakis, G., Elenbaas, M., BANDUCCI, S. A., & de Vreese, C. H. (2010) · Electoral Studies · doi:10.1016/j.electstud.2010.09.021 · Cited by 175
The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects
Ooms, J. C. L. (2014) · arXiv (Cornell University) · doi:10.48550/arxiv.1403.2805 · Cited by 172
How to Avoid Pitfalls in Statistical Analysis of Political Texts: The Case of Germany
Proksch, S., & Slapin, J. B. (2009) · German Politics · doi:10.1080/09644000903055799 · Cited by 157
Anti-Immigrant Party Support and Media Visibility: A Cross-Party, Over-Time Perspective
Vliegenthart, R., Boomgaarden, H. G., & van Spanje, J. (2012) · Journal of Elections Public Opinion and Parties · doi:10.1080/17457289.2012.693933 · Cited by 128
Welbers, K., van Atteveldt, W., Kleinnijenhuis, J., & Ruigrok, N. (2016) · Journalism Studies · doi:10.1080/1461670x.2016.1190663 · Cited by 114
Self-citationWord Counts and Topic Models: Automated text analysis methods for digital journalism research
Günther, E., & Quandt, T. (2015) · Digital Journalism · doi:10.1080/21670811.2015.1093270 · Cited by 111
van Atteveldt, W., Sheafer, T., Shenhav, S. R., & Fogel-Dror, Y. (2017) · Political Analysis · doi:10.1017/pan.2016.12 · Cited by 50
The spread of the Kremlin’s narratives by a western news agency during the Ukraine crisis
Watanabe, K. (2017) · Journal of International Communication · doi:10.1080/13216597.2017.1287750 · Cited by 49
“Vreselijk mooi!” (terribly beautiful): A Subjectivity Lexicon for Dutch Adjectives.
Smedt, T. D., & Daelemans, W. M. P. (2012) · Language Resources and Evaluation Conference (LREC) · doi:10.63317/3jm4sd5bm7ut · Cited by 47
Cited by
State of Industry 5.0—Analysis and Identification of Current Research Trends
Akundi, A., Euresti, D., Luna, S., Ankobiah, W., Lopes, A., & Edinbarough, I. (2022) · Applied System Innovation · doi:10.3390/asi5010027 · Cited by 482
“Several text mining tasks, facilitated by Quanteda package [10] and dpylr package in R, include removing common words from documents.”
A method for analyzing text using VOSviewer
Bukar, U. A., Sayeed, M. S., Razak, S. F. A., Yogarayan, S., Amodu, O. A., & Mahmood, R. A. R. (2023) · MethodsX · doi:10.1016/j.mex.2023.102339 · Cited by 459
van Atteveldt, W., van der Velden, M. A. C. G., & Boukes, M. (2021) · Communication Methods and Measures · doi:10.1080/19312458.2020.1869198 · Cited by 409
Self-citationBeukeboom, C. J., & Burgers, C. (2019) · Review of Communication Research · doi:10.12840/issn.2255-4165.017 · Cited by 126
Jordan, N. D. (2021) · The International Journal of Life Cycle Assessment · doi:10.1007/s11367-021-01873-6 · Cited by 11
Metadata
- Authors
- Welbers, K., Van Atteveldt, W., & Benoit, K.
- Venue
- Communication Methods and Measures
- Publisher
- Informa UK Limited
- Published
- 2017-10-02
- Volume
- 11
- Issue
- 4
- Pages
- 245-265
- ISSN
- 1931-2458 (ISSN-L)
- 1931-2466
- OpenAlex
- W2766022138
- Cited by
- 276
- References
- 38
- FWCI
- 123.65
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.