Key message

Data structure and segmentation

Data files

As there are only a small number of tables, the data structure is very different from summary file 1. It is much simpler. All data are split into 4 files:

How to extract data

As the dataset is small, we will write function to extract data directly from the raw data file. No built-in data will be added to the package.

read_2020_redistricting <- function(){
    states, 
    table_contents = NULL, 
    geo_headers = NULL,
    summary_level = NULL
}

Geo_headers

The geographic header file is a fixed width file, in which each row matches that of File01, File02, and File03 by Logical Record Number, LOGRECNO, as the case in summary file 1.

File 01 (page 6-25)



GL-Li/rawcensus2010 documentation built on Jan. 19, 2024, 7:11 p.m.