This is a list of functions that I think will/should be part of the manifestoR package
Cache: ein Metadaten-JSON-Objekt & ein Textdaten-JSON-Objekt in wd/manifestocache
Metadaten-Objekt enthaelt auch unavailables
manifestodb.setAPIkey(key)
manifestodb.setcachelocation(location="manifestocache")
manifestodb.emptycache()
manifestodb.iscacheuptodate()
manifestodb.get(type=["meta", "text", "original", "core", "versions"], parameters=c(), apikey=NULL, savelocation=NULL)
manifesto.texts([list of partyid-electiondate, subset of coredataset data.frame], cache=TRUE)
manifesto.originals([list of partyid-electiondate, subset of coredataset data.frame], cache=TRUE)
manifesto.availability(...)
manifesto.maindataset(version="current")
manifesto.listversions()
Helper functions not needed by end user:
a tm corpus source that creates from the two JSON objects, meta and text, (and a filtering list of ids?) a tm Corpus
getting, unzipping, curling JSON objects into R structures, ...
vieworiginal(observation or filehandle)
if filehandle: view directly; if an entire observation get pdf first
view: depends on
factor corpus by code
code frequencies to percentage-row
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.