MyNixOS website logo
Description

Tabulate P.L. 94-171 Redistricting Data Summary Files.

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.

PL94171: Tabulate P.L. 94-171 Redistricting Data Summary Files

Lifecycle:experimental CRANstatus R-CMD-check CRAN downloads

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:

install.packages("PL94171")

You can also install the development version from GitHub with:

# 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.

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)
#> Simple feature collection with 569 features and 24 fields (with 569 geometries empty)
#> Geometry type: GEOMETRY
#> Dimension:     XY
#> Bounding box:  xmin: NA ymin: NA xmax: NA ymax: NA
#> Geodetic CRS:  NAD83
#> # A tibble: 569 × 25
#>    GEOID        state county vtd     pop pop_h…¹ pop_w…² pop_b…³ pop_a…⁴ pop_a…⁵
#>    <chr>        <chr> <chr>  <chr> <int>   <int>   <int>   <int>   <int>   <int>
#>  1 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  2 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  3 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  4 44007000101… RI    <NA>   4428…    50       0      50       0       0       0
#>  5 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  6 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  7 44007000101… RI    <NA>   4428…    18      18       0       0       0       0
#>  8 44007000101… RI    <NA>   4428…     0       0       0       0       0       0
#>  9 44007000101… RI    <NA>   4428…    86      86       0       0       0       0
#> 10 44007000101… RI    <NA>   4428…    19       0       0      19       0       0
#> # … with 559 more rows, 15 more variables: pop_nhpi <int>, pop_other <int>,
#> #   pop_two <int>, vap <int>, vap_hisp <int>, vap_white <int>, vap_black <int>,
#> #   vap_aian <int>, vap_asian <int>, vap_nhpi <int>, vap_other <int>,
#> #   vap_two <int>, area_land <dbl>, area_water <dbl>,
#> #   geometry <GEOMETRYCOLLECTION [°]>, and abbreviated variable names
#> #   ¹​pop_hisp, ²​pop_white, ³​pop_black, ⁴​pop_aian, ⁵​pop_asian

To tabulate at different geographies, or to extract other variables, check out the Getting Started page.

Metadata

Version

1.1.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows