quanteda: quantitative analysis of textual data

CRAN Version Downloads Total Downloads R-CMD-check codecov DOI DOI


An R package for managing and analyzing text, created by Kenneth Benoit. Supported by the European Research Council grant ERC-2011-StG 283794-QUANTESS.

For more details, see https://quanteda.io.

quanteda version 3

The quanteda 3.0 major release improves functionality, completes the modularisation of the package begun in v2.0, further improves function consistency by removing previously deprecated functions, and enhances workflow stability and consistency by deprecating some shortcut steps built into some functions.

See https://github.com/quanteda/quanteda/blob/master/NEWS.md#quanteda-30 for a full list of the changes.

The quanteda family of packages

As of v3.0, we have continued our trend of splitting quanteda into modular packages. These are now the following:

We are working on additional package releases, available in the meantime from our GitHub pages:

and more to come.

How To…

How to Install

The normal way from CRAN, using your R GUI or


Or for the latest development version:

# devtools package required to install quanteda from Github 

Because this compiles some C++ and Fortran source code, you will need to have installed the appropriate compilers to build the development version.

How to Use

See the quick start guide to learn how to use quanteda.

How to Get Help

How to Cite

Benoit, Kenneth, Kohei Watanabe, Haiyan Wang, Paul Nulty, Adam Obeng, Stefan Müller, and Akitaka Matsuo. (2018) “quanteda: An R package for the quantitative analysis of textual data”. Journal of Open Source Software. 3(30), 774. https://doi.org/10.21105/joss.00774.

For a BibTeX entry, use the output from citation(package = "quanteda").

How to Leave Feedback

If you like quanteda, please consider leaving feedback or a testimonial here.

How to Contribute

Contributions in the form of feedback, comments, code, and bug reports are most welcome. How to contribute: