https://github.com/corymccartan/pl94171
Tabulate P.L. 94-171 Redistricting Data Summary Files
https://github.com/corymccartan/pl94171
census r
Last synced: about 1 year ago
JSON representation
Tabulate P.L. 94-171 Redistricting Data Summary Files
- Host: GitHub
- URL: https://github.com/corymccartan/pl94171
- Owner: CoryMcCartan
- License: other
- Created: 2021-03-31T03:01:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T18:03:58.000Z (about 1 year ago)
- Last Synced: 2025-06-20T18:43:58.809Z (about 1 year ago)
- Topics: census, r
- Language: Prolog
- Homepage: http://corymccartan.com/PL94171/
- Size: 3.82 MB
- Stars: 8
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# **PL94171**: Tabulate P.L. 94-171 Redistricting Data Summary Files 
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://CRAN.R-project.org/package=PL94171)
[](https://github.com/CoryMcCartan/PL94171/actions/workflows/R-CMD-check.yaml)

The **PL94171** package contains tools to process legacy format summary
redistricting data files produced by the United States Census Bureau pursuant to
P.L. 94-171. These files are generally available earlier but are difficult to
work with as-is.
## Installation
Install the latest version from CRAN with:
``` r
install.packages("PL94171")
```
You can also install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("CoryMcCartan/PL94171")
```
## Basic Usage
Just need block- or precinct-level data for total and voting-age population by
race? Then `pl_tidy_shp()` is all you need.
```{r}
library(PL94171)
# put the path to the PL 94-171 files here, or use `pl_url()` to download them
pl_path = system.file("extdata/ri2018_2020Style.pl", package="PL94171")
pl_tidy_shp("RI", pl_path)
```
To tabulate at different geographies, or to extract other variables, check out
the [Getting Started page](https://corymccartan.com/PL94171/articles/PL94171.html).