as.data.frame.clarity_xml: Return entire clarity object as tibble.

Description Usage Arguments Value

View source: R/clarity_data_frame.R

Description

Converts the lowest geographic level (typically Precinct) of a clarity_xml object into a long, 'tidy' dataframe.

Usage

1
2
## S3 method for class 'clarity_xml'
as.data.frame(x, ...)

Arguments

x

an object of class clarity_xml

...

arguments passed to as.data.frame

Value

a data frame, with the columns precinct, votes, votetype, candidate, race


npelikan/clarifyr documentation built on Dec. 17, 2020, 1:47 a.m.