diff --git a/R/ces.R b/R/ces.R index 071a9f8..96564c6 100644 --- a/R/ces.R +++ b/R/ces.R @@ -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} diff --git a/TODO.txt b/TODO.txt index db1437f..c97f0e0 100644 --- a/TODO.txt +++ b/TODO.txt @@ -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 diff --git a/data-raw/cumulative_2006-2024.rds b/data-raw/cumulative_2006-2024.rds new file mode 100644 index 0000000..eeac017 Binary files /dev/null and b/data-raw/cumulative_2006-2024.rds differ diff --git a/data-raw/make_ces.R b/data-raw/make_ces.R index b5647f2..2339b8f 100644 --- a/data-raw/make_ces.R +++ b/data-raw/make_ces.R @@ -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. diff --git a/data/ces.rda b/data/ces.rda index 30c9518..f8c955c 100644 Binary files a/data/ces.rda and b/data/ces.rda differ diff --git a/man/ces.Rd b/man/ces.Rd index 286c134..4574bd1 100644 --- a/man/ces.Rd +++ b/man/ces.Rd @@ -5,7 +5,7 @@ \alias{ces} \title{Data from the Cooperative Election Study} \format{ -A tibble with 617,455 observations and 17 variables: +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}