The {manifestoEnhanceR} package implements functionality to enhance {manifestoR} data objects. This includes functions to convert manifestoR data obejcts to tidy data frames, and a function to convet tidy manifesto data frames to XML documents.
as_tibble
methods for {manifestoR} 'ManifestoCorpus' and 'ManifestoDocument' classesenhance_manifesto_df()
: takes a manifesto data frame (seeas_tibble.ManifestoCorpus
andas_tibble.ManifestoDocument
) and enhances it with running quasi-sentence and sentence counters, and other usefull text-level information; returns amanifesto.df
object (inherits fromtibble
)manifesto_df_to_xml()
convertsmanifesto.df
objects to XML documents
A short tutorial using the Swiss manifesto corpus: r vignette("tutorial", "manifestoEnhanceR")
In R, type
library(devtools)
install_github("haukelicht/manifestoEnhanceR")
- write Intro vignette
- implement tests
- implement
manifesto_xml_to_df()