cvap

Citizen Voting Age Population

https://github.com/christopherkenny/cvap

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Citizen Voting Age Population

Basic Info
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created almost 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

 # cvap 


[![CRAN
status](https://www.r-pkg.org/badges/version/cvap)](https://CRAN.R-project.org/package=cvap)
[![cvap status
badge](https://christopherkenny.r-universe.dev/badges/cvap)](https://christopherkenny.r-universe.dev/cvap)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/christopherkenny/cvap/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/christopherkenny/cvap/actions/workflows/R-CMD-check.yaml)


The goal of `cvap` is to work with Census citizen voting-age population (CVAP) data.

## Installation

You can install the released version of cvap from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("cvap")
```

Install the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("christopherkenny/cvap")
```
## Example

The primary tools from this package are to first download CVAP data that's already processed.

```{r example}
library(cvap)
de_cvap <- cvap_get('DE')
```

`cvap_get()` has options for the available geographies in the [Census special tabulation](https://www.census.gov/programs-surveys/decennial-census/about/voting-rights/cvap.html).

With that data, we can combine it with ACS and Decennial Census data to estimate block-level data.

```{r, eval = FALSE}
de_block <- censable::build_dec(geography = 'block', state = 'DE', 
                                year = 2010, geometry = FALSE)
de_block_group <- censable::build_acs(geography = 'block group', state = 'DE', 
                                      geometry = FALSE, year = 2019)
```

For example purposes, the 2010 Delaware Census block data is provided:
```{r}
data('de_block')
```

Along with the Delaware 2019 ACS data:
```{r}
data('de_block_group')
```


This allows us to distribute the block group data approximately between blocks.
```{r}
block_est <- cvap_distribute(de_cvap, de_block_group)
```


This workflow can also be combined into one function
```{r, eval = FALSE}
block_est <- cvap_distribute_censable('DE')
```


The resulting data has estimated CVAP data for each block:
```{r}
dplyr::glimpse(block_est)
```
Thus, using other packages like `PL94171`, we can easily aggregate this from blocks to VTDs, where CVAP is not directly provided. `vest_crosswalk` allows you to download a variant of VEST's crosswalk that is computationally more favorable for R.

Owner

  • Name: Christopher T. Kenny
  • Login: christopherkenny
  • Kind: user
  • Location: Cambridge, MA
  • Company: Harvard University

Redistricting and rstats. Harvard University, PhD Candidate, Department of Government. Cornell '19.

GitHub Events

Total
  • Issues event: 1
  • Push event: 3
Last Year
  • Issues event: 1
  • Push event: 3

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 48
  • Total Committers: 2
  • Avg Commits per committer: 24.0
  • Development Distribution Score (DDS): 0.042
Past Year
  • Commits: 10
  • Committers: 1
  • Avg Commits per committer: 10.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Christopher Kenny c****4@c****u 46
Shiro Kuriwaki s****i@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 2
  • Total pull requests: 1
  • Average time to close issues: 6 months
  • Average time to close pull requests: 4 months
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 3 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • christopherkenny (1)
  • kuriwaki (1)
Pull Request Authors
  • kuriwaki (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 272 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: cvap

Citizen Voting Age Population

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 272 Last month
Rankings
Forks count: 21.0%
Dependent repos count: 23.9%
Stargazers count: 27.8%
Dependent packages count: 28.7%
Average: 30.2%
Downloads: 49.5%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • censable * imports
  • cli * imports
  • dplyr * imports
  • fs * imports
  • magrittr * imports
  • readr * imports
  • rlang * imports
  • stringr * imports
  • tidyr * imports
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action 4.1.4 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite