Description Usage Arguments Details Value
internal function that handles missing values in the data frame of a pollyvote
object. Different error handling arguments can be handed over.
If election_data
, election
and election_date
are supplied to the function, than
the election date which is supplied will be used
and resolving of the election date from
get_election_result(pv, election_name = election)
will be ignored.
1 | limit_days(data, no_days, election_data, pv, election, election_date, ...)
|
data |
[ |
no_days |
[ |
election_data |
[ |
pv |
[ |
election |
[ |
election_date |
[ |
... |
[ |
If limit_days is called like: limit_days(pv$data, no_days = 10, election_date = "Y-M-DD") and if pv object is not supplied, then election_date will not be validated whether it is existing election date in the pollyvote object. Therefore, it is more safe for if pollyvote object is also supplied as an argument (e.g. limit_days(pv$data, no_days = 10, pv = pv, election_date = "Y-M-DD")).
the data set limited to the number of days before the election.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.