check_data: checks if data is permissible for a pollyvote object

Description Usage Arguments Value Examples

Description

internal check function

Usage

1
check_data(newdata, pv)

Arguments

newdata

[data.frame]
the data to add to the pollyvote object. should contain this columns: id, date, source, party, percent

pv

[pollyvote]
the pollyvote object to add the data to.

Value

the checked data.

Examples

1
2
3
pv = create_pollyvote(perm_countries = "D")
data("election_result")
election_result = check_data(election_result, pv)

pollyvote/pollyvoter documentation built on May 25, 2019, 11:23 a.m.