Skip to content

Commit ee14d15

Browse files
committed
0.2.2 release with updated data
1 parent 740f09a commit ee14d15

7 files changed

Lines changed: 432 additions & 425 deletions

File tree

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Package: parlitools
22
Type: Package
33
Title: Tools for Analysing UK Politics
4-
Date: 2017-09-23
5-
Version: 0.2.1
6-
Authors@R: person("Evan Odell", email="evanodell91@gmail.com", role=c("aut", "cre"))
4+
Date: 2017-11-25
5+
Version: 0.2.2
6+
Authors@R: person("Evan Odell", email="evanodell91@gmail.com", role=c("aut", "cre"), comment = c(ORCID="0000-0003-1845-808X"))
77
Author: Evan Odell [aut, cre]
88
Maintainer: Evan Odell <evanodell91@gmail.com>
99
Description: Provides various tools for analysing UK political data, including creating political cartograms and retrieving data.

R/data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
# council_data ------------------------------------------------------------
9797
#' A tibble with details on the council make-up of local authorities across the UK.
9898
#'
99-
#' This data is taken from \url{http://opencouncildata.co.uk/}, run by Jon Lawson. Variable names have been converted to snake_case and variables have been converted to appropriate R classes. ONS local authority codes have been taken from the \code{local_hex_map} data, and from the ONS's Open Geography Portal. This data is accurate as of 2017-06-02.
99+
#' This data is taken from \url{http://opencouncildata.co.uk/}, run by Jon Lawson. Variable names have been converted to snake_case and variables have been converted to appropriate R classes. ONS local authority codes have been taken from the \code{local_hex_map} data, and from the ONS's Open Geography Portal. This data is accurate as of 2017-11-24.
100100
#'
101101
#' @format A tibble, with 418 rows and 20 columns.
102102
#' \describe{

data-raw/data-prep.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
library(readr)
9595
library(dplyr)
9696
library(readxl)
97-
council_data <- read_csv("~/GitHub/parlitools/data-raw/opencouncildata_councils.csv")
97+
council_data <- read_csv("data-raw/opencouncildata_councils.csv")
9898
council_data$type <- NULL
9999
council_data$id <- NULL
100100
council_data$model <- NULL
@@ -182,7 +182,7 @@ council_data$majority_party <- recode(council_data$majority_party,
182182
"Telford & Wrekin" = "Telford and Wrekin",
183183
"Windsor & Maidenhead" = "Windsor and Maidenhead")
184184

185-
la_codes <- read_csv("./data-raw/la_codes.csv")
185+
la_codes <- read_csv("data-raw/la_codes.csv")
186186

187187
council_data <- left_join(council_data, la_codes)
188188

data-raw/opencouncildata_councils.csv

Lines changed: 418 additions & 418 deletions
Large diffs are not rendered by default.

data/council_data.rda

27 Bytes
Binary file not shown.

man/council_data.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

news.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
# parlitools 0.2.2
3+
4+
## Data
5+
6+
Updating of `council_data` dataset to be accurate as of 2017-11-24.
7+
18
# parlitools 0.2.1
29

310
## Data

0 commit comments

Comments
 (0)