check_additional_args: checks additional arguments to add_data function

Description Usage Arguments Value Examples

Description

internal check function if additional arguments to pollyvoter::add_data are permissible for a pollyvote object

Usage

1
check_additional_args(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.

...

additional named arguments to be checked.

Value

Nothing. Only throws error message if arguments are not feasible.

Examples

1
2
3
pv = create_pollyvote(perm_countries = "D")
data("polls_individual")
check_additional_args(polls_individual, pv)

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