The {britpol}
package makes analysing British political data quick and
simple. It contains two pre-formatted datasets, plus a host of useful
functions. The first dataset, pollbase
, is a long-format version of
Mark Pack’s dataset of historic British public opinion polls combined
with more recent data from Wikipedia. The second, pollbasepro
,
provides 24,115 daily estimates of voting intention figures for each of
Britain’s three largest parties from 26 May 1955 to 2 June 2021.
To install the latest version of {britpol}
, run the following code in
R
:
devtools::install_github("jackobailey/britpol")
British Poll of Polls, 2 June 2021:
pollbasepro
suggests that the Conservative Party is the largest party
in Britain. They hold a lead over the Labour Party of around 8% (4% to
11%). This puts the Labour Party in second and the Liberal Democrats in
third.
{britpol}
, pollbase
, and pollbasepro
will change over time as
elections come and go. Users should use only the most recent version of
the package when conducting their analyses. Like any project, some minor
mistakes might have crept into the code. If you think that you have
found an error or would like to make a recommendation for a future
update, please raise an
issue.
You may also use the {britpol}
codebase for your own purposes in line
with its
license.
But you must do so with attribution. That is, you may reproduce,
reuse, and adapt the code as you see fit, but must state in each case
that you used {britpol}
to produce your work. The relevant citations
are as follows:
Data: Bailey, J., M. Pack, and L. Mansillo (2021) PollBasePro: Daily Estimates of Aggregate Voting Intention in Great Britain from 1955 to 2021 v.0.1.0 [computer file], June 2021. Retrieved from https://doi.org/10.7910/DVN/3POIQW.
Paper: Bailey, J., M. Pack, and L. Mansillo (2021) PollBasePro: Daily Estimates of Aggregate Voting Intention in Great Britain from 1955 to 2021. Retrieved from doi.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.