ManifestoCorpus: Manifesto Corpus class

Description Usage Arguments Details Examples

View source: R/corpus.R

Description

Objects of this class are returned by mp_corpus.

Usage

1

Arguments

csource

a ManifestoJSONSource, see Source

Details

A tm Corpus storing ManifestoDocuments

For usage and structure of the stored documents see ManifestoDocument.

Examples

1
## Not run: corpus <- mp_corpus(subset(mp_maindataset(), countryname == "Russia"))

Example output

Loading required package: NLP
Loading required package: tm
Loading required package: dplyr

Attaching package:dplyrThe following objects are masked frompackage:stats:

    filter, lag

The following objects are masked frompackage:base:

    intersect, setdiff, setequal, union

Loading required package: tibble
When publishing work using the Manifesto Corpus, please make sure to cite it correctly and to give the identification number of the corpus version used for your analysis.

You can print citation and version information with the function mp_cite().

Note that some of the scaling/analysis algorithms provided with this package were conceptually developed by authors referenced in the respective function documentation. Please also reference them when using these algorithms.

manifestoR documentation built on Jan. 13, 2021, 9:53 a.m.