add masterdata from bundestag.de and use this for genderequality #16

Merged
christian merged 10 commits from genderequality-alternative into master 2021-08-11 08:30:30 +02:00
4 changed files with 9 additions and 9 deletions
Showing only changes of commit d657ca3fbe - Show all commits
+1 -1
View File
@@ -14,7 +14,7 @@ join_speaker(tb, res, fraction_only = F)
\item{fraction_only}{if TRUE, only select fraction from the resulting joined tibble \item{fraction_only}{if TRUE, only select fraction from the resulting joined tibble
left join speaker information from res$speaker into tb. left join speaker information from res$speaker into tb.
if fraction_only} if fraction_only, drop all columns but fraction}
} }
\description{ \description{
add information from speaker table to a tibble containing speaker id add information from speaker table to a tibble containing speaker id
+4 -2
View File
@@ -4,10 +4,12 @@
\alias{read_all} \alias{read_all}
\title{Parse xml records} \title{Parse xml records}
\usage{ \usage{
read_all(path = "inst/records/") read_all(path = "inst/records/", pattern = "-data\\\\.xml")
} }
\arguments{ \arguments{
\item{path}{character} \item{path}{path to records directory}
\item{pattern}{search pattern to find records in directory}
} }
\description{ \description{
Creates a list of tibbles containing relevant information from all records Creates a list of tibbles containing relevant information from all records
+3 -3
View File
@@ -4,14 +4,14 @@
\alias{repair} \alias{repair}
\title{Repair parsed tables} \title{Repair parsed tables}
\usage{ \usage{
repair(parse_output, repair_comments = FALSE) repair(parse_output, lookup_speaker = FALSE)
} }
\arguments{ \arguments{
\item{parse_output}{tibble} \item{parse_output}{tibble}
\item{repair_comments}{bool \item{lookup_speaker}{bool
If repair_comments is TRUE, members of the parliament mentioned in comments are looked up in speaker table. If lookup_speaker is TRUE, members of the parliament mentioned in comments are looked up in speaker table.
Possible test: check identical(repair(res), repair(repair(res))) == TRUE Possible test: check identical(repair(res), repair(repair(res))) == TRUE
Since repaired tables should be a fixpoint of repair.} Since repaired tables should be a fixpoint of repair.}
+1 -3
View File
@@ -4,15 +4,13 @@
\alias{word_usage_by_date} \alias{word_usage_by_date}
\title{Word usage summarised by date} \title{Word usage summarised by date}
\usage{ \usage{
word_usage_by_date(res, patterns, name, tidy = F) word_usage_by_date(res, patterns, tidy = F)
} }
\arguments{ \arguments{
\item{res}{List of Tibbles to be analysed.} \item{res}{List of Tibbles to be analysed.}
\item{patterns}{Words to look up.} \item{patterns}{Words to look up.}
\item{name}{?}
\item{tidy}{default is FALSE.} \item{tidy}{default is FALSE.}
} }
\description{ \description{