Skip to content

Commit

Permalink
Replace Valdez-Cordova Census Area with Chugach Census Area, Alaska a…
Browse files Browse the repository at this point in the history
…nd Copper River Census Area, Alaska

See https://www.census.gov/programs-surveys/geography/technical-documentation/county-changes.2010.html for changes effective January 02, 2019.
  • Loading branch information
pdil committed Feb 6, 2022
1 parent d87efcd commit f20a5c6
Show file tree
Hide file tree
Showing 9 changed files with 329 additions and 324 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ Follow these steps to update the files used within the project:
2. In the `Cartographic Boundary Files by Geography` section, download the following files to the `data-raw` folder:
* Counties 1 : 20,000,000 (national) shapefile
* States 1 : 20,000,000 (national) shapefile
3. Delete the folders from older years (e.g. `cb_2017_us_county_20m`)
4. Run `create-map-df.R`
5. Run `format-map-df.R`
6. Copy the following files to `inst/extdata`:
3. Refer to the [county changes documentation](https://www.census.gov/programs-surveys/geography/technical-documentation/county-changes.2020.html) and make any relevant updates to `county-fips.csv`
4. Delete the folders from older years (e.g. `cb_2017_us_county_20m`)
5. Run `create-map-df.R`
6. Run `format-map-df.R`
7. Copy the following files to `inst/extdata`:
* `us_counties_centroids.csv`
* `us_counties.csv`
* `us_states_centroids.csv`
* `us_states.csv`
* `county_fips.csv` (if changed)

After applying these changes, [open a pull request](https://github.com/pdil/usmapdata/compare) and await review.

Expand Down
43 changes: 22 additions & 21 deletions data-raw/county_fips.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"full","abbr","county","fips"
"Alaska","AK","Aleutians West Census Area","02016"
"Alaska","AK","Anchorage Municipality","02020"
"Alaska","AK","Aleutians East Borough","02013"
"Alaska","AK","Kodiak Island Borough","02150"
"Alaska","AK","Kusilvak Census Area","02158"
"Alaska","AK","Lake and Peninsula Borough","02164"
"Alaska","AK","Matanuska-Susitna Borough","02170"
Expand All @@ -12,28 +14,27 @@
"Alaska","AK","Sitka City and Borough","02220"
"Alaska","AK","Skagway Municipality","02230"
"Alaska","AK","Southeast Fairbanks Census Area","02240"
"Alaska","AK","Valdez-Cordova Census Area","02261"
"Alaska","AK","Wrangell City and Borough","02275"
"Alaska","AK","Yakutat City and Borough","02282"
"Alaska","AK","Yukon-Koyukuk Census Area","02290"
"Alaska","AK","Denali Borough","02068"
"Alaska","AK","Anchorage Municipality","02020"
"Alaska","AK","Copper River Census Area","02066"
"Alaska","AK","Bethel Census Area","02050"
"Alaska","AK","Bristol Bay Borough","02060"
"Alaska","AK","Hoonah-Angoon Census Area","02105"
"Alaska","AK","Chugach Census Area","02063"
"Alaska","AK","Haines Borough","02100"
"Alaska","AK","Denali Borough","02068"
"Alaska","AK","Dillingham Census Area","02070"
"Alaska","AK","Fairbanks North Star Borough","02090"
"Alaska","AK","Haines Borough","02100"
"Alaska","AK","Kodiak Island Borough","02150"
"Alaska","AK","Ketchikan Gateway Borough","02130"
"Alaska","AK","Hoonah-Angoon Census Area","02105"
"Alaska","AK","Juneau City and Borough","02110"
"Alaska","AK","Kenai Peninsula Borough","02122"
"Alaska","AK","Ketchikan Gateway Borough","02130"
"Alabama","AL","Baldwin County","01003"
"Alabama","AL","Barbour County","01005"
"Alabama","AL","Autauga County","01001"
"Alabama","AL","Bibb County","01007"
"Alabama","AL","Baldwin County","01003"
"Alabama","AL","Cleburne County","01029"
"Alabama","AL","Coffee County","01031"
"Alabama","AL","Bibb County","01007"
"Alabama","AL","Colbert County","01033"
"Alabama","AL","Blount County","01009"
"Alabama","AL","Bullock County","01011"
"Alabama","AL","Butler County","01013"
Expand All @@ -46,7 +47,7 @@
"Alabama","AL","Clay County","01027"
"Alabama","AL","Etowah County","01055"
"Alabama","AL","Fayette County","01057"
"Alabama","AL","Colbert County","01033"
"Alabama","AL","Franklin County","01059"
"Alabama","AL","Conecuh County","01035"
"Alabama","AL","Coosa County","01037"
"Alabama","AL","Covington County","01039"
Expand All @@ -57,7 +58,7 @@
"Alabama","AL","DeKalb County","01049"
"Alabama","AL","Elmore County","01051"
"Alabama","AL","Escambia County","01053"
"Alabama","AL","Lee County","01081"
"Alabama","AL","Autauga County","01001"
"Alabama","AL","Limestone County","01083"
"Alabama","AL","Lowndes County","01085"
"Alabama","AL","Macon County","01087"
Expand All @@ -84,17 +85,17 @@
"Alabama","AL","Washington County","01129"
"Alabama","AL","Wilcox County","01131"
"Alabama","AL","Winston County","01133"
"Alabama","AL","Greene County","01063"
"Alabama","AL","Lee County","01081"
"Alabama","AL","Hale County","01065"
"Alabama","AL","Franklin County","01059"
"Alabama","AL","Henry County","01067"
"Alabama","AL","Geneva County","01061"
"Alabama","AL","Jackson County","01071"
"Alabama","AL","Greene County","01063"
"Alabama","AL","Jefferson County","01073"
"Alabama","AL","Henry County","01067"
"Alabama","AL","Houston County","01069"
"Alabama","AL","Lawrence County","01079"
"Alabama","AL","Lamar County","01075"
"Alabama","AL","Houston County","01069"
"Alabama","AL","Jackson County","01071"
"Alabama","AL","Lauderdale County","01077"
"Alabama","AL","Lawrence County","01079"
"Arkansas","AR","Clay County","05021"
"Arkansas","AR","Cleburne County","05023"
"Arkansas","AR","Cleveland County","05025"
Expand Down Expand Up @@ -170,10 +171,10 @@
"Arkansas","AR","Madison County","05087"
"Arkansas","AR","Marion County","05089"
"Arkansas","AR","Monroe County","05095"
,"AS","Manu'a District","60020"
,"AS","Rose Island","60030"
,"AS","Swains Island","60040"
,"AS","Eastern District","60010"
,"AS","Manu'a District","60020"
,"AS","Western District","60050"
"Arizona","AZ","Apache County","04001"
"Arizona","AZ","Yavapai County","04025"
Expand Down Expand Up @@ -1523,8 +1524,8 @@
"Missouri","MO","Randolph County","29175"
,"MP","Northern Islands Municipality","69085"
,"MP","Rota Municipality","69100"
,"MP","Saipan Municipality","69110"
,"MP","Tinian Municipality","69120"
,"MP","Saipan Municipality","69110"
"Mississippi","MS","Lincoln County","28085"
"Mississippi","MS","Lowndes County","28087"
"Mississippi","MS","Copiah County","28029"
Expand Down Expand Up @@ -2320,6 +2321,7 @@
"Pennsylvania","PA","Potter County","42105"
"Pennsylvania","PA","Philadelphia County","42101"
"Pennsylvania","PA","Pike County","42103"
,"PR","Adjuntas Municipio","72001"
,"PR","Aguada Municipio","72003"
,"PR","Aguadilla Municipio","72005"
,"PR","Aguas Buenas Municipio","72007"
Expand Down Expand Up @@ -2397,7 +2399,6 @@
,"PR","Villalba Municipio","72149"
,"PR","Yabucoa Municipio","72151"
,"PR","Yauco Municipio","72153"
,"PR","Adjuntas Municipio","72001"
"Rhode Island","RI","Bristol County","44001"
"Rhode Island","RI","Providence County","44007"
"Rhode Island","RI","Washington County","44009"
Expand Down
3 changes: 2 additions & 1 deletion data-raw/county_fips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ AK,02,016,Aleutians West Census Area,H5
AK,02,020,Anchorage Municipality,H6
AK,02,050,Bethel Census Area,H5
AK,02,060,Bristol Bay Borough,H1
AK,02,063,Chugach Census Area,Z5
AK,02,066,Copper River Census Area,Z5
AK,02,068,Denali Borough,H1
AK,02,070,Dillingham Census Area,H5
AK,02,090,Fairbanks North Star Borough,H1
Expand All @@ -90,7 +92,6 @@ AK,02,198,Prince of Wales-Hyder Census Area,H5
AK,02,220,Sitka City and Borough,H6
AK,02,230,Skagway Municipality,H1
AK,02,240,Southeast Fairbanks Census Area,H5
AK,02,261,Valdez-Cordova Census Area,H5
AK,02,275,Wrangell City and Borough,H1
AK,02,282,Yakutat City and Borough,H1
AK,02,290,Yukon-Koyukuk Census Area,H5
Expand Down
Loading

0 comments on commit f20a5c6

Please sign in to comment.