Bundles polls, parties, elections and trends into the popPolls object used
by plot.popPolls() and popAddTrend(). Normally created by popRead().
Arguments
- polls
data.tableof polls, one row per poll and one column per party.- options
List of options as published by the endpoint, notably
measure("p"for percentages,"s"for seats).- parties
data.tablewith the columnscode,nameandcolor.- trends
Named list of trends, each a long
data.tablewith the columnsdate,party,valueand optionallyvariance.- name
Name of the poll, used as plot title.
- elections
data.tableof election results in the same shape aspolls.- events
data.tableof events with the columnsdateandname.- code
Poll code the data was read for.
- retrieved
Time the data was downloaded.