Closed rootsmusic closed 2 years ago
Yes, it's after the last underscore. The precinct field in that file is constructed as:
PrecinctCode_CongressionalDistrictSenateDistrictHouseDistrict_vtdCode
Ok @sbaltzmit, but some values in the 'precinct' field has only a single character after the last "_" character. The Census has no VTD coded "0". For example, why do the following 'precinct' values end in a single character?
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
precinct -- 1022_007016187_0 1025_007016187_0 112_005009160_0 114_005009160_0 1150_002001175_0 1246_007016187_0 1247_007016187_0 1248_007016187_0 1302_007016131_0 1305_007016131_0 1560_006029129_0 1675_004024130_0 237_012034171_0 25_009011005_0 3535_005026164_0 4235_002003181_0 5373_003007195_0 5376_003007195_0 700_010031087_0 705_010031087_0 710_010031087_0 715_010031087_0 720_010031199_0 722_010031199_0 724_010031087_0 726_010031199_0 728_010031199_0 730_010031193_0 735_010031193_0 740_010031193_0 745_010031193_0 750_010031193_0 755_010031193_0 757_010031193_0 760_010031193_0 762_010031193_0 774_009011126_0 905_016049017_0
(The codebook doesn't specify which fields are concatenated in the 'precinct' field.) I need the VTD code in 2020-pa-precinct-general.tab. Is VTD part of the 'precinct' field? Thanks.