parse_nnv_xml: Parse an election XML file from NNV

Description Usage Arguments Examples

View source: R/parse-nnv.R

Description

Given the path to an NNV file with election results in NNV, return the totals by geography for each candidate.

Usage

1

Arguments

file

Path to the XML file.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
file1 <- "~/dev/mapping-elections/nnv-xml/New York/1789/ny.uscongress1.1789.xml"
file2 <- "~/dev/mapping-elections/nnv-xml/Virginia/1789/va.uscongress.7.1789.xml"
file3 <- "~/dev/mapping-elections/nnv-xml/Tennessee/1801/tn.congress.1801.xml"
parse_nnv_xml(file1)
parse_nnv_xml(file2)
parse_nnv_xml(file3)

## End(Not run)

mapping-elections/mappingelections documentation built on July 24, 2019, 9:42 a.m.