Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/ces.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' (2024)} for background and details. The raw code that was used to produce
#' the data is accessible at Kuriwaki's \href{https://github.com/kuriwaki/cces_cumulative}{Github.}
#'
#' @format A tibble with 617,455 observations and 17 variables:
#' @format A tibble with 701,955 observations and 17 variables:
#' \describe{
#' \item{case_id}{integer variable for case number}
#' \item{year}{integer variable for year of survey}
Expand Down
2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

* List all values for character/factor variables with 6 or fewer possible values.

* Update ces with 2024 data.
* Update ces with 2024 data. SS: Done


### polls
Expand Down
Binary file added data-raw/cumulative_2006-2024.rds
Binary file not shown.
4 changes: 2 additions & 2 deletions data-raw/make_ces.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Script for cleaning ces data. Shiro updates the data whenever CES is updated.
# Latest is for 2023. See the help page for links. Could include more approval
# Latest is for 2024. See the help page for links. Could include more approval
# variables.

library(tidyverse)
library(haven)
library(usethis)

raw <- read_rds("data-raw/cumulative_2006-2023.rds") |>
raw <- read_rds("data-raw/cumulative_2006-2024.rds") |>
select(case_id, year, state, voted_turnout_self,

# Always a tricky issue.
Expand Down
Binary file modified data/ces.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/ces.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading