Skip to content

Commit

Permalink
Update doc for cd_info, up to v13
Browse files Browse the repository at this point in the history
  • Loading branch information
kuriwaki committed Sep 30, 2024
1 parent 8134190 commit bc966e7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 51 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ccesMRPprep
Type: Package
Title: Functions and Data to Prepare CCES data for MRP
Version: 0.1.12
Version: 0.1.13
Authors@R:
c(person(given = "Shiro",
family = "Kuriwaki",
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# cccesMRPprep 0.1.13

* Add 2022, 2024, 2006, and 2012 daily kos cd data

# cccesMRPprep 0.1.12

* Add 2021, 2022, and 2023 to cces_dv_ids
* Add 2022 validated vote and 2023 cumulative name update to cces_dv_ids
* Add 2022 and 2024 daily kos cd data

# ccesMRPprep 0.1.11

Expand Down
39 changes: 20 additions & 19 deletions R/datadoc_cd-info.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#' Congressional District level information by The Downballot (formerly Daily Kos)
#' Congressional District level information by The Downballot
#'
#'
#' Some of the most consequential variables to include in MRP are at the
#' Some of the most consequential variables to include in MRP are measured at the
#' district-level. We include one such data for congressional districts. All data
#' is collected by The Downballot `cd_info_2018` is data on 2018 boundaries, `cd_info_2016`
#' uses 2016 boundaries and `cd_info_2020` uses 2020 (but with place descriptions
#' currently at 2016). `cd_info_2022` is data on 2022 boundaries; `cd_info_2024`
#' uses 2024 boundaries.
#' is collected by The Downballot.
#'
#' @details `cd_info_2006` is data on boundaries used in 2006, 2008, and 2010;
#' `cd_info_2012` is data on boundaries used in 2012 and 2014; `cd_info_2016`
#' uses 2016 boundaries; `cd_info_2018` is data on 2018 boundaries;
#' `cd_info_2020` uses 2020 (but with place descriptions currently at 2016); `cd_info_2022` is
#' data on 2022 boundaries; `cd_info_2024` uses 2024 boundaries.
#'
#' @format Each `cd_info_20**` is a dataframe with the `r nrow(cd_info_2018)` Congressional
#' Districts, one row per cd.
Expand All @@ -19,7 +22,7 @@
#' \item{cd}{District code. The formatting corresponds to the CCES cumulative
#' coding of \code{cd}: a two-letter abbreviation for the state followed by
#' a dash, and the district number padded with zeros to the left to be of length
#' 2. At-large districts like Delaware are given a "-01" for the district number.}
#' 2. At-large districts like Delaware are given a "-01" for the district number. See `to_cd()`}
#' \item{presvotes_total}{In presidential years, the total number of votes cast for
#' the office of President that year. Taken from Daily Kos estimates from precinct results.}
#' \item{pct_trump, pct_romney, pct_mccain}{The two-party voteshare of Republican
Expand All @@ -43,26 +46,24 @@
#' The Daily Kos Elections naming guide to the nation's congressional districts.
#' \url{https://bit.ly/2XsFI5W}
#'
#' Daily Kos, "2008, 2012, & 2016 results for districts used in 2018."
#' \url{https://bit.ly/3bXtAPB}
#' Daily Kos, "2008 results for districts used in **2006, 2008, 2010**"
#' \url{https://bit.ly/4entUrV}
#'
#' Daily Kos, "2008, 2012 results for districts used in **2012, 2014**"
#' \url{https://bit.ly/3N4PDZK}
#'
#' Daily Kos, "2008, 2012, & 2016 results for districts used in **2018**." \url{https://bit.ly/3bXtAPB}
#'
#' Daily Kos, "2012, 2016 & 2020 presidential election results for congressional districts in 2020"
#' \url{https://bit.ly/3DRhPcj}
#' Daily Kos, "2012, 2016 & 2020 presidential election results for congressional districts in **2020**", \url{https://bit.ly/3DRhPcj}
#'
#' Daily Kos, 2020 presidential election results by later congressional districts:\cr
#' 2022 congressional districts: \url{https://bit.ly/4gLYnBK}\cr
#' 2024 congressional districts: \url{https://bit.ly/47KTvZw}
#' **2022** congressional districts: \url{https://bit.ly/4gLYnBK}\cr
#' **2024** congressional districts: \url{https://bit.ly/47KTvZw}
#'
#' Daily Kos, congressional district geography and most populous places: \cr
#' 119th Congress: \url{https://bit.ly/geography_119}\cr
#' 118th Congress: \url{https://bit.ly/geography_118}
#'
#' Daily Kos, "2008 results for districts used in 2006, 2008, 2010"
#' \url{https://bit.ly/4entUrV}
#'
#' Daily Kos, "2008, 2012 results for districts used in 2012, 2014"
#' \url{https://bit.ly/3N4PDZK}
#'
#' Pennsylvania 2016 CD names are named by Shiro Kuriwaki and Lara Putnam.
#'
#' Also see Cha, Jeremiah; Kuriwaki, Shiro; Snyder, James M. Jr., 2021,
Expand Down
62 changes: 32 additions & 30 deletions man/cd_info_2018.Rd

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

0 comments on commit bc966e7

Please sign in to comment.