parse_protocol: Parse a plenary protocol from xml format to tibbles

Description Usage Arguments Value

View source: R/parse_protocol.R

Description

Uses the xml structure of a plenary protocol to create three tibbles for further data analysis.

Usage

1
parse_protocol(path, check_schema = TRUE)

Arguments

path

A string containing the path to the xml file you want to parse

check_schema

A logical value indicating whether you want to check compatibility of the xml schema used in your xml file.

Value

Three tibbles in a named list:

"speakers": A tibble of all speaking politicians containing speaker id, name, party and similar information.

"paragraphs": A tibble of all paragraphs in speeches, containing speaker id, speech id and content of the paragraph.

"comments": A tibble of all comments given during speeches and about reactions to speeches, containing speech id and comment id as well as content of the comment.


bockstaller/dbtprotokoll documentation built on Dec. 31, 2020, 8:56 p.m.