# Quantitative Analysis of Textual Data

## Documentation for package ‘quanteda’ version 2.0.1

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

A B C D F H I K M N P Q S T U misc

quanteda-package | An R package for the quantitative analysis of textual data

## -- A --

as.character.corpus | Get or assign corpus texts
as.character.tokens | Coercion, checking, and combining functions for tokens objects
as.data.frame.textstat_proxy | Similarity and distance computation between documents or features
as.dfm | Coercion and checking functions for dfm objects
as.dictionary | Coercion and checking functions for dictionary objects
as.fcm | Coercion and checking functions for fcm objects
as.igraph.fcm | Plot a network of feature co-occurrences
as.list.textstat_proxy | Similarity and distance computation between documents or features
as.list.tokens | Coercion, checking, and combining functions for tokens objects
as.matrix.dfm | Coerce a dfm to a matrix or data.frame
as.network.fcm | Plot a network of feature co-occurrences
as.tokens | Coercion, checking, and combining functions for tokens objects
as.tokens.list | Coercion, checking, and combining functions for tokens objects
as.tokens.spacyr_parsed | Coercion, checking, and combining functions for tokens objects
as.tokens.tokens | Coercion, checking, and combining functions for tokens objects
as.yaml | Convert quanteda dictionary objects to the YAML format

## -- B --

bootstrap_dfm | Bootstrap a dfm

## -- C --

c.tokens | Coercion, checking, and combining functions for tokens objects
char_ngrams | Create ngrams and skipgrams from tokens
char_segment | Segment texts on a pattern match
char_tolower | Convert the case of character objects
char_tortl | [Experimental] Change direction of words in tokens
char_toupper | Convert the case of character objects
char_trim | Remove sentences based on their token lengths or a pattern match
char_wordstem | Stem the terms in an object
collocations | Identify and score multi-word expressions
convert | Convert quanteda objects to non-quanteda formats
convert.corpus | Convert quanteda objects to non-quanteda formats
convert.dfm | Convert quanteda objects to non-quanteda formats
corpus | Construct a corpus object
corpus.character | Construct a corpus object
corpus.Corpus | Construct a corpus object
corpus.corpus | Construct a corpus object
corpus.data.frame | Construct a corpus object
corpus.kwic | Construct a corpus object
corpus_reshape | Recast the document units of a corpus
corpus_sample | Randomly sample documents from a corpus
corpus_segment | Segment texts on a pattern match
corpus_subset | Extract a subset of a corpus
corpus_trim | Remove sentences based on their token lengths or a pattern match

## -- D --

data-relocated | Formerly included data objects
data_char_sampletext | A paragraph of text for testing various text-based functions
data_char_ukimmig2010 | Immigration-related sections of 2010 UK party manifestos
data_corpus_dailnoconf1991 | Formerly included data objects
data_corpus_inaugural | US presidential inaugural address texts
data_corpus_irishbudget2010 | Formerly included data objects
data_dfm_LBGexample | dfm from data in Table 1 of Laver, Benoit, and Garry (2003)
data_dfm_lbgexample | dfm from data in Table 1 of Laver, Benoit, and Garry (2003)
data_dictionary_LSD2015 | Lexicoder Sentiment Dictionary (2015)
dfm | Create a document-feature matrix
dfm_compress | Recombine a dfm or fcm by combining identical dimension elements
dfm_group | Combine documents in a dfm by a grouping variable
dfm_keep | Select features from a dfm or fcm
dfm_lookup | Apply a dictionary to a dfm
dfm_match | Match the feature set of a dfm to given feature names
dfm_remove | Select features from a dfm or fcm
dfm_replace | Replace features in dfm
dfm_sample | Randomly sample documents or features from a dfm
dfm_select | Select features from a dfm or fcm
dfm_smooth | Weight the feature frequencies in a dfm
dfm_sort | Sort a dfm by frequency of one or more margins
dfm_subset | Extract a subset of a dfm
dfm_tfidf | Weight a dfm by _tf-idf_
dfm_tolower | Convert the case of the features of a dfm and combine
dfm_toupper | Convert the case of the features of a dfm and combine
dfm_trim | Trim a dfm using frequency threshold-based feature selection
dfm_weight | Weight the feature frequencies in a dfm
dfm_wordstem | Stem the terms in an object
dictionary | Create a dictionary
docfreq | Compute the (weighted) document frequency of a feature
docnames | Get or set document names
docnames.spacyr_parsed | Extensions for and from spacy_parse objects
docnames<- | Get or set document names
docvars | Get or set document-level variables
docvars<- | Get or set document-level variables

## -- F --

fcm | Create a feature co-occurrence matrix
fcm_compress | Recombine a dfm or fcm by combining identical dimension elements
fcm_keep | Select features from a dfm or fcm
fcm_remove | Select features from a dfm or fcm
fcm_select | Select features from a dfm or fcm
fcm_sort | Sort an fcm in alphabetical order of the features
fcm_tolower | Convert the case of the features of a dfm and combine
fcm_toupper | Convert the case of the features of a dfm and combine
featfreq | Compute the frequencies of features
featnames | Get the feature labels from a dfm

## -- H --

head.corpus | Return the first or last part of a corpus
head.dfm | Return the first or last part of a dfm

## -- I --

is.collocations | Identify and score multi-word expressions
is.dfm | Coercion and checking functions for dfm objects
is.dictionary | Coercion and checking functions for dictionary objects
is.fcm | Create a feature co-occurrence matrix
is.kwic | Locate keywords-in-context
is.phrase | Declare a compound character to be a sequence of separate pattern matches
is.tokens | Coercion, checking, and combining functions for tokens objects

## -- K --

kwic | Locate keywords-in-context

## -- M --

meta | Get or set object metadata
meta<- | Get or set object metadata
metacorpus | Get or set object metadata
metacorpus<- | Get or set object metadata
metadoc | Get or set document-level meta-data
metadoc<- | Get or set document-level meta-data

## -- N --

ndoc | Count the number of documents or features
ndoc.spacyr_parsed | Extensions for and from spacy_parse objects
nfeat | Count the number of documents or features
nscrabble | Count the Scrabble letter values of text
nsentence | Count the number of sentences
nsentence.spacyr_parsed | Extensions for and from spacy_parse objects
nsyllable | Count syllables in a text
ntoken | Count the number of tokens or types
ntoken.spacyr_parsed | Extensions for and from spacy_parse objects
ntype | Count the number of tokens or types
ntype.spacyr_parsed | Extensions for and from spacy_parse objects

## -- P --

phrase | Declare a compound character to be a sequence of separate pattern matches
print-method | Print methods for quanteda core objects
print-quanteda | Print methods for quanteda core objects
print.corpus | Print methods for quanteda core objects
print.dictionary | Print methods for quanteda core objects
print.tokens | Print methods for quanteda core objects

## -- Q --

quanteda | An R package for the quantitative analysis of textual data
quanteda_options | Get or set package options for quanteda

## -- S --

show-method | Print methods for quanteda core objects
spacyr-methods | Extensions for and from spacy_parse objects
sparsity | Compute the sparsity of a document-feature matrix

## -- T --

tail.corpus | Return the first or last part of a corpus
tail.dfm | Return the first or last part of a dfm
textmodels | Models for scaling and classification of textual data
textplot_keyness | Plot word keyness
textplot_network | Plot a network of feature co-occurrences
textplot_wordcloud | Plot features as a wordcloud
textplot_xray | Plot the dispersion of key word(s)
texts | Get or assign corpus texts
texts<- | Get or assign corpus texts
textstat_collocations | Identify and score multi-word expressions
textstat_dist | Similarity and distance computation between documents or features
textstat_entropy | Compute entropies of documents or features
textstat_frequency | Tabulate feature frequencies
textstat_keyness | Calculate keyness statistics
textstat_lexdiv | Calculate lexical diversity
textstat_readability | Calculate readability
textstat_simil | Similarity and distance computation between documents or features
tokens | Construct a tokens object
tokens_chunk | Segment tokens object by chunks of a given size
tokens_compound | Convert token sequences into compound tokens
tokens_keep | Select or remove tokens from a tokens object
tokens_lookup | Apply a dictionary to a tokens object
tokens_ngrams | Create ngrams and skipgrams from tokens
tokens_remove | Select or remove tokens from a tokens object
tokens_replace | Replace tokens in a tokens object
tokens_sample | Randomly sample documents from a tokens object
tokens_select | Select or remove tokens from a tokens object
tokens_skipgrams | Create ngrams and skipgrams from tokens
tokens_split | Split tokens by a separator pattern
tokens_subset | Extract a subset of a tokens
tokens_tolower | Convert the case of tokens
tokens_tortl | [Experimental] Change direction of words in tokens
tokens_toupper | Convert the case of tokens
tokens_wordstem | Stem the terms in an object
topfeatures | Identify the most frequent features in a dfm
types | Get word types from a tokens object

## -- U --

unlist.tokens | Coercion, checking, and combining functions for tokens objects

## -- misc --

"metacorpus<-" | Get or set object metadata
$.corpus | Get or set document-level variables
$.dfm | Get or set document-level variables
$.tokens | Get or set document-level variables
$<-.corpus | Get or set document-level variables
$<-.dfm | Get or set document-level variables
$<-.tokens | Get or set document-level variables
+.tokens | Coercion, checking, and combining functions for tokens objects