Description Usage Arguments Details Value Examples
Documents are downloaded from the Manifesto Project Corpus Database. If CMP coding annotations are available, they are attached to the documents, otherwise raw texts are provided. The documents are cached in the working memory to ensure internal consistency, enable offline use and reduce online traffic.
1 2 3 4 5 6 7 |
ids |
Information on which documents to get. This can either be a
list of partys (as ids) and dates of elections as given to
|
apikey |
API key to use. Defaults to |
cache |
Boolean flag indicating whether to use locally cached data if available. |
codefilter |
A vector of CMP codes to filter the documents: only quasi-sentences
with the codes specified in |
codefilter_layer |
layer to which the codefilter should apply, defaults to cmp_code |
See mp_save_cache
for ensuring reproducibility by
saving cache and version identifier to the hard drive.
See mp_update_cache
for updating the locally saved content with
the most recent version from the Manifesto Project Database API.
an object of Corpus
's subclass
ManifestoCorpus
holding the available of the requested documents
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
corpus <- mp_corpus(party == 61620 & rile > 10)
wanted <- data.frame(party=c(41320, 41320), date=c(200909, 201309))
mp_corpus(wanted)
mp_corpus(subset(mp_maindataset(), countryname == "France"))
partially_available <- data.frame(party=c(41320, 41320), date=c(200909, 200509))
mp_corpus(partially_available)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.