Changed party_id
in the party_colour
dataset to a character vector.
Otherwise very minor update, some tweaks to docs layout.
New 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 bes_2015
dataset.
Census data from the British Election Study has been moved to its own seperate file, named census11
.
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.
Updated documentation, more comprehensive testing. Added Northern Irish EU Referendum results to the leave_votes_west
dataset.
Fixed bugs in mps_on_date()
that were causing problems on Windows.
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 bes_2015
.
Fixed spelling mistakes in Endiburgh constituency names in bes_2015
.
Added optional tidy_style
parameter in current_mps()
and mps_on_date()
, allowing users to decide which style snake_case, camelCase and period.case they want variable names to be in, if ‘tidy’==TRUE.
Added an additional vignette on using the data in parlitools
to create scaled maps with the cartogram
package.
Introducing 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.