replace_zeroes_with_na: Unpack the data from XML elements contained in a list-column

Description Usage Arguments Value

View source: R/utils.R

Description

Some elements within AEC feeds contain a value of 0 when results haven't been received yet. This function checks whether each full group of vote count elements (e.g., per polling place) has zero values and, if so, changes them all to NA. Provide grouping variables via the dots (...) in the function call.

Usage

1

Arguments

x

A data frame

...

Grouping variables that will be applied to identify whether a complete group of rows have zero total votes reporting.

Value

A data frame with zeroes replaced by NAs


tobiasziegler/aecfeedr documentation built on April 9, 2021, 10:45 a.m.