mend.text: Mend full Storting text file before making vote data frame

Description Usage Arguments Details Value See Also Examples

View source: R/mend.text.R

Description

A function to mend misreadings of vote strings.

Usage

1
mend.text(path, chamber = "st")

Arguments

path

Character string of the directory where the full text file can be located.

Details

The function reads the full text file made by collapse.text, replaces misread vote occurances using gsub, and splits the document into a data frame of these votes using strapply from the gsubfn package. It is important to run both order.files and collapse.text before running this command.

Value

Returns one text vector where all single page text files are pasted in the right order.

See Also

order.files, votedf, collapse.text

Examples

1
text <- mend.text("~Storting/storting1899/")

martigso/stortingAlpha documentation built on May 21, 2019, 12:37 p.m.