Learn R Programming

⚠️There's a newer version (4.2.0) of this package.Take me there.

quanteda (version 0.8.4-2)

Quantitative Analysis of Textual Data

Description

A fast, flexible toolset for for the management, processing, and quantitative analysis of textual data in R.

Copy Link

Version

Install

install.packages('quanteda')

Monthly Downloads

24,111

Version

0.8.4-2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Kenneth Benoit

Last Published

September 9th, 2015

Functions in quanteda (0.8.4-2)

readability

calculate readability
textmodel_fitted-class

the fitted textmodel classes
trim

Trim a dfm using threshold-based or random feature selection
inaugCorpus

A corpus of US presidential inaugural addresses from 1789-2013
corpus

constructor for corpus objects
phrasetotoken

convert phrases into single tokens
kwic

List key words in context from a text or a corpus of texts.
dfm-class

Virtual class "dfm" for a document-feature matrix
corpusSource-class

corpus source classes
ntoken

count the number of tokens or types
features

extract the feature labels from a dfm
selectFeatures

select features from an object
ndoc

get the number of documents or features
LBGexample

dfm containing example data from Table 1 of Laver Benoit and Garry (2003)
sample.corpus

Randomly sample documents or features
print.dfm

print a dfm object
collocations

Detect collocations from text
exampleString

A paragraph of text for testing various text-based functions
similarity

compute similarities between documents and/or features
applyDictionary

apply a dictionary or thesarus to an object
ngrams

Create ngrams
textfile

read a text corpus source from a file
metacorpus

get or set corpus metadata
textmodel_ca

correspondence analysis of a document-feature matrix
settings

Get or set the corpus settings
ie2010Corpus

Irish budget speeches from 2010
textmodel_wordfish

wordfish text model
removeFeatures

remove features from an object
convert

convert a dfm to a non-quanteda format
dictionary

create a dictionary
plot.dfm

plot features as a wordcloud
metadoc

get or set document-level meta-data
sort.dfm

sort a dfm by one or more margins
dfm

create a document-feature matrix
segment

segment texts into component elements
nsentence

count the number of sentences
texts

get corpus texts
textmodel

fit a text model
show,dictionary-method

print a dictionary object
quanteda-package

An R package for the quantitative analysis of textual data.
syllables

count syllables in a text
scrabble

compute the Scrabble letter values of text
wordstem

stem words
toLower

Convert texts to lower case
docfreq

get the document frequency of a feature
weight

Weight the feature frequencies in a dfm by various methods
textmodel_wordscores

Wordscores text model
ukimmigTexts

Immigration-related sections of 2010 UK party manifestos
docvars

get or set for document-level variables
wordlists

word lists used in some readability indexes
summary.corpus

summarize a corpus or a vector of texts
topfeatures

list the most frequent features
tokenize

tokenize a set of texts
subset.corpus

extract a subset of a corpus
docnames

get or set document names
lexdiv

calculate lexical diversity
changeunits

change the document units of a corpus
encodedTexts

encoded texts for testing
stopwords

access built-in stopwords
encoding

detect the encoding of texts