Learn R Programming

quanteda (version 0.9.9-3)

data_corpus_inaugural: US presidential inaugural address texts

Description

US presidential inaugural address texts, and metadata (for the corpus), from 1789 to present.

Usage

data_corpus_inaugural
data_char_inaugural

Arguments

Format

An object of class corpus (inherits from list) of length 4.

Details

data_corpus_inaugural is the quanteda-package corpus object of US presidents' inaugural addresses since 1789. Document variables contain the year of the address and the last name of the president.

data_char_inaugural is the character vector of US presidential inaugaration speeches

References

https://archive.org/details/Inaugural-Address-Corpus-1789-2009 and http://www.presidency.ucsb.edu/inaugurals.php.

Examples

Run this code
# some operations on the inaugural corpus
summary(data_corpus_inaugural)
head(docvars(data_corpus_inaugural), 10)
# working with the character vector only
str(data_char_inaugural)
head(docvars(data_corpus_inaugural), 10)
mycorpus <- corpus(data_char_inaugural)

Run the code above in your browser using DataLab