{
  "_id": "6a18a762acfb0bcc41dc8d60",
  "Package": "cpsvote",
  "Title": "A Toolbox for Using the CPS’s Voting and Registration Supplement",
  "Version": "0.2.0",
  "Authors@R": "c(person(given = \"Jay\",\nfamily = \"Lee\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jay.lee.tx@gmail.com\"),\nperson(given = \"Paul\",\nfamily = \"Gronke\",\nrole = c(\"aut\")),\nperson(given = \"John\",\nfamily = \"Curiel\",\nrole = c(\"ctb\")))",
  "Description": "Provides automated methods for downloading, recoding, and\nmerging selected years of the Current Population Survey's\nVoting and Registration Supplement\n<https://www.nber.org/research/data/current-population-survey-cps-supplements-voting-and-registration>,\na large N national survey about registration, voting, and\nnon-voting in United States federal elections. Provides\ndocumentation for appropriate use of sample weights to generate\nstatistical estimates, drawing from Hur & Achen (2013)\n<doi:10.1093/poq/nft042> and McDonald (2018)\n<http://www.electproject.org/home/voter-turnout/voter-turnout-data>.",
  "URL": "https://github.com/Reed-EVIC/cpsvote",
  "BugReports": "https://github.com/Reed-EVIC/cpsvote/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.1",
  "Config/pak/sysreqs": "libicu-dev libx11-dev",
  "Repository": "https://reed-evic.r-universe.dev",
  "Date/Publication": "2026-05-28 19:19:27 UTC",
  "RemoteUrl": "https://github.com/reed-evic/cpsvote",
  "RemoteRef": "HEAD",
  "RemoteSha": "4d40e452d9b71be8ea160c4e22772019ab015729",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-28 20:33:48 UTC",
    "User": "root"
  },
  "Author": "Jay Lee [aut, cre],\nPaul Gronke [aut],\nJohn Curiel [ctb]",
  "Maintainer": "Jay Lee <jay.lee.tx@gmail.com>",
  "MD5sum": "8239ef6931312168392e4b75681125a2",
  "_user": "reed-evic",
  "_type": "src",
  "_file": "cpsvote_0.2.0.tar.gz",
  "_fileid": "3b1c5e596d66d2ec8f3672e9e19c58ce6a3123f903fb96c3e06f04e4a8bdaf9d",
  "_filesize": 563717,
  "_sha256": "3b1c5e596d66d2ec8f3672e9e19c58ce6a3123f903fb96c3e06f04e4a8bdaf9d",
  "_created": "2026-05-28T20:33:48.000Z",
  "_published": "2026-05-28T20:36:50.678Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78383023606,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7276736082"
    },
    {
      "job": 78383023605,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7276732726"
    },
    {
      "job": 78383023573,
      "time": 79,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7276714153"
    },
    {
      "job": 78383023701,
      "time": 99,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7276720902"
    },
    {
      "job": 78382381565,
      "time": 219,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276686745"
    },
    {
      "job": 78383023589,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276725122"
    },
    {
      "job": 78383023591,
      "time": 97,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7276720104"
    },
    {
      "job": 78383023583,
      "time": 79,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7276714005"
    },
    {
      "job": 78383023656,
      "time": 73,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7276712393"
    }
  ],
  "_buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/reed-evic/cpsvote",
  "_commit": {
    "id": "4d40e452d9b71be8ea160c4e22772019ab015729",
    "author": "Paul Gronke <paulgronke@gmail.com>",
    "committer": "Paul Gronke <paulgronke@gmail.com>",
    "message": "exclude claude.md files from the repo.\n",
    "time": 1779995967
  },
  "_maintainer": {
    "name": "Jay Lee",
    "email": "jay.lee.tx@gmail.com",
    "login": "jayleetx",
    "bluesky": "@jayleetx.com",
    "description": "Reed '19, doing [election/data] science at any given moment",
    "uuid": 25374830
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "srvyr",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "usmap",
      "role": "Suggests"
    },
    {
      "package": "ggthemes",
      "role": "Suggests"
    }
  ],
  "_owner": "reed-evic",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 8
    },
    {
      "week": "2026-21",
      "n": 4
    },
    {
      "week": "2026-22",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "jayleetx",
      "count": 158,
      "uuid": 25374830
    },
    {
      "user": "paulgronke",
      "count": 46,
      "uuid": 25355000
    },
    {
      "user": "canyonfoot",
      "count": 13,
      "uuid": 33793596
    },
    {
      "user": "jcuriel-unc",
      "count": 7,
      "uuid": 47302709
    }
  ],
  "_userbio": {
    "uuid": 46008822,
    "type": "organization",
    "name": "Elections and  Voting Information Center at Reed College"
  },
  "_downloads": {
    "count": 229,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cpsvote"
  },
  "_devurl": "https://github.com/reed-evic/cpsvote",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cpsvote.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/reed-evic/cpsvote",
  "_realowner": "reed-evic",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-11-05"
    }
  ],
  "_exports": [
    "%>%",
    "cps_download_data",
    "cps_download_docs",
    "cps_label",
    "cps_load_basic",
    "cps_read",
    "cps_read_year",
    "cps_recode_vote",
    "cps_refactor",
    "cps_reweight_turnout"
  ],
  "_datasets": [
    {
      "name": "cps_2016_10k",
      "title": "A sample of the raw 2016 CPS dataset",
      "object": "cps_2016_10k",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FILE",
        "YEAR",
        "STATE",
        "AGE",
        "SEX",
        "EDUCATION",
        "RACE",
        "HISPANIC",
        "WEIGHT",
        "VRS_VOTE",
        "VRS_REG",
        "VRS_REG_WHYNOT",
        "VRS_VOTE_WHYNOT",
        "VRS_VOTEMODE_2004toPRESENT",
        "VRS_VOTEWHEN_2004toPRESENT",
        "VRS_REG_METHOD",
        "VRS_RESIDENCE"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cps_2020_10k",
      "title": "A sample of the raw 2020 CPS dataset",
      "object": "cps_2020_10k",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FILE",
        "YEAR",
        "STATE",
        "AGE",
        "SEX",
        "EDUCATION",
        "RACE",
        "HISPANIC",
        "WEIGHT",
        "VRS_VOTE",
        "VRS_REG",
        "VRS_REG_WHYNOT",
        "VRS_VOTE_WHYNOT",
        "VRS_VOTEMODE_2004toPRESENT",
        "VRS_VOTEWHEN_2004toPRESENT",
        "VRS_REG_METHOD",
        "VRS_RESIDENCE"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cps_allyears_10k",
      "title": "A sample of the full CPS dataset",
      "object": "cps_allyears_10k",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FILE",
        "YEAR",
        "STATE",
        "AGE",
        "SEX",
        "EDUCATION",
        "RACE",
        "HISPANIC",
        "WEIGHT",
        "VRS_VOTE",
        "VRS_REG",
        "VRS_VOTE_TIME",
        "VRS_RESIDENCE",
        "VRS_VOTE_WHYNOT",
        "VRS_VOTEMETHOD_1996to2002",
        "VRS_REG_SINCE95",
        "VRS_REG_DMV",
        "VRS_REG_METHOD",
        "VRS_REG_WHYNOT",
        "VRS_VOTEMODE_2004toPRESENT",
        "VRS_VOTEWHEN_2004toPRESENT",
        "VRS_VOTEMETHOD_CON",
        "cps_turnout",
        "hurachen_turnout",
        "turnout_weight"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cps_cols",
      "title": "Sample column specifications for reading CPS data",
      "object": "cps_cols",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "cps_name",
        "new_name",
        "start_pos",
        "end_pos",
        "col_type",
        "description",
        "notes"
      ],
      "rows": 236,
      "table": true,
      "tojson": true
    },
    {
      "name": "cps_factors",
      "title": "Sample factor specifications for reading CPS data",
      "object": "cps_factors",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "cps_name",
        "new_name",
        "code",
        "value"
      ],
      "rows": 2475,
      "table": true,
      "tojson": true
    },
    {
      "name": "cps_reweight",
      "title": "Calculations to reweight properly for voter turnout",
      "object": "cps_reweight",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "YEAR",
        "STATE",
        "response",
        "vep_turnout",
        "cps_turnout",
        "reweight"
      ],
      "rows": 1530,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cps_2016_10k",
      "title": "A sample of the raw 2016 CPS dataset",
      "topics": [
        "cps_2016_10k"
      ]
    },
    {
      "page": "cps_2020_10k",
      "title": "A sample of the raw 2020 CPS dataset",
      "topics": [
        "cps_2020_10k"
      ]
    },
    {
      "page": "cps_allyears_10k",
      "title": "A sample of the full CPS dataset",
      "topics": [
        "cps_allyears_10k"
      ]
    },
    {
      "page": "cps_cols",
      "title": "Sample column specifications for reading CPS data",
      "topics": [
        "cps_cols"
      ]
    },
    {
      "page": "cps_download_data",
      "title": "Download CPS microdata",
      "topics": [
        "cps_download_data"
      ]
    },
    {
      "page": "cps_download_docs",
      "title": "Download CPS technical documentation",
      "topics": [
        "cps_download_docs"
      ]
    },
    {
      "page": "cps_factors",
      "title": "Sample factor specifications for reading CPS data",
      "topics": [
        "cps_factors"
      ]
    },
    {
      "page": "cps_label",
      "title": "Apply factor levels to raw CPS data",
      "topics": [
        "cps_label"
      ]
    },
    {
      "page": "cps_load_basic",
      "title": "load some basic/default CPS data into the environment",
      "topics": [
        "cps_load_basic"
      ]
    },
    {
      "page": "cps_read",
      "title": "Read in CPS data",
      "topics": [
        "cps_read"
      ]
    },
    {
      "page": "cps_read_year",
      "title": "Load a single CPS file",
      "topics": [
        "cps_read_year"
      ]
    },
    {
      "page": "cps_recode_vote",
      "title": "recode the voting variable for turnout calculations",
      "topics": [
        "cps_recode_vote"
      ]
    },
    {
      "page": "cps_refactor",
      "title": "combine factor levels across years",
      "topics": [
        "cps_refactor"
      ]
    },
    {
      "page": "cps_reweight",
      "title": "Calculations to reweight properly for voter turnout",
      "topics": [
        "cps_reweight"
      ]
    },
    {
      "page": "cps_reweight_turnout",
      "title": "apply weight correction for voter turnout",
      "topics": [
        "cps_reweight_turnout"
      ]
    },
    {
      "page": "na_ifin",
      "title": "vectorized 'na_if'",
      "topics": [
        "na_ifin"
      ]
    }
  ],
  "_readme": "https://github.com/reed-evic/cpsvote/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "dplyr",
    "forcats",
    "generics",
    "glue",
    "hms",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "readr",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "add-variables.Rmd",
      "filename": "add-variables.html",
      "title": "Read Additional CPS Variables",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-12-11 02:57:55",
      "modified": "2025-10-08 06:04:31",
      "commits": 2
    },
    {
      "source": "background.Rmd",
      "filename": "background.html",
      "title": "Background Information and Context",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why We Created cpsvote",
        "Using the CPS Voting and Registration Supplement: Methodological and Data Challenges",
        "Challenge 1: The Survey Content, Column Names, and Coding Change Over Time",
        "Challenge 2: Survey Weights Are a Necessity When Using the Voting and Registration Supplement",
        "Challenge 3: CPS Makes Idiosyncratic Coding Choices for Voter Turnout, and Turnout Estimates Are Biased",
        "Sample Usage: Varying Estimates of Voter Turnout in 2020",
        "More Resources"
      ],
      "created": "2020-10-06 21:34:10",
      "modified": "2025-10-08 06:04:31",
      "commits": 4
    },
    {
      "source": "basics.Rmd",
      "filename": "basics.html",
      "title": "cpsvote: A Social Science Toolbox for Using the Current Population Survey's Voting and Registration Supplement",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installing and Loading the Package",
        "Basic Use (AKA Tips if You Don't Like Reading Documentation)",
        "Advanced Use",
        "Examples, Background Reading, and Data Sources",
        "Acknowledgements"
      ],
      "created": "2020-10-07 20:00:35",
      "modified": "2025-10-08 06:04:31",
      "commits": 4
    },
    {
      "source": "test_download.Rmd",
      "filename": "test_download.html",
      "title": "Test Download",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2021-01-26 19:19:43",
      "modified": "2025-10-08 06:04:31",
      "commits": 2
    },
    {
      "source": "vote_method_trends.Rmd",
      "filename": "vote_method_trends.html",
      "title": "Using the CPS and cpsvote to Understand Voting Part 2",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-12-11 02:58:12",
      "modified": "2025-10-08 06:04:31",
      "commits": 5
    },
    {
      "source": "voting.Rmd",
      "filename": "voting.html",
      "title": "Using the CPS and cpsvote to Understand Voting",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview: How cpsvote Helps Resolve Challenges in Using the CPS to Study Voting Behavior",
        "Voter Turnout in the CPS",
        "Example: Estimating Voter Turnout in 2020",
        "Example: Estimating Turnout Within Racial Groups",
        "Example: A Simple Map of Voter Turnout by State",
        "Vote Mode in the CPS: Election Day, Early In-Person, and Absentee/Voting by Mail",
        "Example: Growth in Alternative Voting Modes",
        "Example: Growth in Vote By Mail Concentrated in the West",
        "Example: Mapping Alternative Methods of Voting"
      ],
      "created": "2020-10-09 17:39:54",
      "modified": "2025-10-08 06:04:31",
      "commits": 9
    }
  ],
  "_score": 6.306425027550688,
  "_indexed": true,
  "_nocasepkg": "cpsvote",
  "_universes": [
    "reed-evic",
    "jayleetx"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-28T20:36:14.000Z",
      "distro": "noble",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "021fc27c5136c24c70937de379fca131e655bf0f94263eee7f7b0fa56705fcc8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-28T20:36:07.000Z",
      "distro": "noble",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "2725fe9498c8d8aa62aaba4efc89bd5d2faf8a9805e8c832f2f1395a8a970455",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-28T20:35:15.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "c91aab27c41011ca7342eff4317a3f4ae017f7ea8beecd3d44738a702961fc14",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-28T20:35:32.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "a4b3680a760e632ad063f2c5397c5ecbca86a7963c7fb854a6c44bad53ff1932",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-05-28T20:35:58.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "c2ca9d95ba814560d856380e52e01282539fe0425b169bf903d02ca796c2662a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-28T20:35:19.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "186b6e0b5fe510de06a49ffa776b88af2530c7afb9ef6fa50774ec2f97eed39b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-28T20:35:05.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "b93b71fbe2831f18b71910a57421f7c000c9d3504139f5f2b8bdebec7efbb1f9",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-28T20:34:59.000Z",
      "commit": "4d40e452d9b71be8ea160c4e22772019ab015729",
      "fileid": "371e2ac318ce33e3d813c32fdc48b894b7a0d809e888f65847e179362f2a347c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/reed-evic/actions/runs/26600409102"
    }
  ]
}