ons_const_id in the
leave_votes_west dataset to ensure consistent naming of parliamentary constituency codes
Added Northern Ireland GE results
Fixed formatting of percentages in the
leave_votes_west dataset so they are all scaled on 0-1 rather than some on 0-1 and some on 0-100.
Improved the organisation of the British Election Study dataset documentation.
parlitools no longer stores local council party data. The most up-to-date data on the political make-up of local councils and individual councillors can be be accessed with the new
leave_votes_west dataset to include the latest best-estimates of constituency level votes from Chris Hanretty and the actual votes, where known.
Fixed errors caused by duplicated vignette names.
Eliminated some dependencies.
party_id in the
party_colour dataset to a character vector.
Otherwise very minor update, some tweaks to docs layout.
council_data dataset to be accurate as of 2017-09-13.
combined_leave_vote column to
leave_votes_west dataset with the actual leave vote if known and the Chris Hanretty estimate if not known.
Vote percentages in
leave_votes_west are now all numeric class.
bes_2017 dataset, with results of 2017 General Election, taken from the 2017 British Election Study. This dataset replaces the
ge_2017 dataset. It also replicates some of the data in the
Census data from the British Election Study has been moved to its own separate file, named
Changes to vignettes to comply with CRAN policies and to reduce the time needed to check the package.
Reduction in the number of similar vignette examples to reduce build time.
council_data dataset to be accurate as of 2017-07-14.
ge_2017 dataset, with results of 2017 General Election, linked with constituency data from
mps_on_date()that were causing problems on Windows.
bes_2015 to use V2.21 from the British Election Study.
council_data dataset, with details on the parties controlling local councils across the UK.
Fixed bug in
mps_on_date where function did not return constituency data.
mps_on_date also now accepts dates in any format or class that can be converted with
as.Date() to a date format.
Fixed names party names in
party_colour to align with names used in
Fixed spelling mistakes in Endiburgh constituency names in
parlitoolsto create scaled maps with the
local_hex_map, a hexagonal map of all local authority areas in Scotland, Wales and England.
parlitools, a package for retrieving and analysing UK political data. The package includes datasets from the British Election Study, a hexagonal map of all UK constituencies, and party colour hex codes.
The package includes a dataset with 2015 General Election results and census information for each constituency in Scotland, Wales and England, taken from the British Election Study.
The package also includes a dataset (
party_colours) with the hex code for the official colours of UK political parties.