Skip to content

Commit

Permalink
fix st duplicates issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cbgoodman committed Oct 31, 2022
1 parent 8fdfd17 commit f3ebd9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ On macOS, you must ensure the `~/Documents/Stata/ado/personal` folder exists. By
If it returns with no error, you are ready to go.

## Limitations
* Using `countyfips` with the `name` option requires specific formatting of the `name` variable. County names must *not* include "county" after the name. County names beginning with "Saint" such as Saint Louis must be abbreviated to "St." or "St" (both are included).
* Using `countyfips` with the `name` option requires specific formatting of the `name` variable. County names must *not* include "county" after the name. County names beginning with "Saint" such as Saint Louis must be abbreviated to "St" (no period). County names with apostrophes are included ("PRINCE GEORGE'S" County, MD)
* FIPS codes are available for U.S counties, county equivalents, and territories. Census codes are only available for counties or county equivalents (such as independent cities).
* FIPS codes for Virginia independent cities as well as merged county and independent cities (as is the practice for some areas in BEA data) are included. Using `countyfips` with the `name` option will require extremely particular formatting. Additionally, only the `statefips` option will work when merging with `name`.
* `countyfips` uses the more recent FIPS code for Miami-Dade county (12086) rather than the FIPS code for Dade county (12025). The Census state (10) and county (13) codes remain unchanged.
Expand Down
3 changes: 2 additions & 1 deletion countyfips.sthlp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ The first time you run {cmd:countyfips} it creates a data file that lives in you
Using {cmd:countyfips} with the {cmd:name} option requires specific
formatting of the {cmd:name} variable. County names must {it:not} include
"county" after the name. County names beginning with "Saint" such as
Saint Louis must be abbreviated to "St."{p_end}
Saint Louis must be abbreviated to "St" (no period). County names with
apostrophes are included ("PRINCE GEORGE'S" County, MD) {p_end}

{pstd}
FIPS codes are available for U.S counties, county equivalents, and territories.
Expand Down
30 changes: 0 additions & 30 deletions countyfips_data.ado
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
1109 PIKE AL 1 109 1 55
1111 RANDOLPH AL 1 111 1 56
1113 RUSSELL AL 1 113 1 57
1115 ST. CLAIR AL 1 115 1 58
1115 ST CLAIR AL 1 115 1 58
1117 SHELBY AL 1 117 1 59
1119 SUMTER AL 1 119 1 60
Expand Down Expand Up @@ -170,7 +169,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
5117 PRAIRIE AR 5 117 4 59
5119 PULASKI AR 5 119 4 60
5121 RANDOLPH AR 5 121 4 61
5123 ST. FRANCIS AR 5 123 4 62
5123 ST FRANCIS AR 5 123 4 62
5125 SALINE AR 5 125 4 63
5127 SCOTT AR 5 127 4 64
Expand Down Expand Up @@ -373,9 +371,7 @@ fips county_name state_abb state_fips county_fips state_code county_code
12103 PINELLAS FL 12 103 10 52
12105 POLK FL 12 105 10 53
12107 PUTNAM FL 12 107 10 54
12109 ST. JOHNS FL 12 109 10 55
12109 ST JOHNS FL 12 109 10 55
12111 ST. LUCIE FL 12 111 10 56
12111 ST LUCIE FL 12 111 10 56
12113 SANTA ROSA FL 12 113 10 57
12115 SARASOTA FL 12 115 10 58
Expand Down Expand Up @@ -677,7 +673,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
17157 RANDOLPH IL 17 157 14 79
17159 RICHLAND IL 17 159 14 80
17161 ROCK ISLAND IL 17 161 14 81
17163 ST. CLAIR IL 17 163 14 82
17163 ST CLAIR IL 17 163 14 82
17165 SALINE IL 17 165 14 83
17167 SANGAMON IL 17 167 14 84
Expand Down Expand Up @@ -769,7 +764,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
18135 RANDOLPH IN 18 135 15 68
18137 RIPLEY IN 18 137 15 69
18139 RUSH IN 18 139 15 70
18141 ST. JOSEPH IN 18 141 15 71
18141 ST JOSEPH IN 18 141 15 71
18143 SCOTT IN 18 143 15 72
18145 SHELBY IN 18 145 15 73
Expand Down Expand Up @@ -1159,23 +1153,14 @@ fips county_name state_abb state_fips county_fips state_code county_code
22081 RED RIVER LA 22 81 19 41
22083 RICHLAND LA 22 83 19 42
22085 SABINE LA 22 85 19 43
22087 ST. BERNARD LA 22 87 19 44
22087 ST BERNARD LA 22 87 19 44
22089 ST. CHARLES LA 22 89 19 45
22089 ST CHARLES LA 22 89 19 45
22091 ST. HELENA LA 22 91 19 46
22091 ST HELENA LA 22 91 19 46
22093 ST. JAMES LA 22 93 19 47
22093 ST JAMES LA 22 93 19 47
22095 ST. JOHN THE BAPTIST LA 22 95 19 48
22095 ST JOHN THE BAPTIST LA 22 95 19 48
22097 ST. LANDRY LA 22 97 19 49
22097 ST LANDRY LA 22 97 19 49
22099 ST. MARTIN LA 22 99 19 50
22099 ST MARTIN LA 22 99 19 50
22101 ST. MARY LA 22 101 19 51
22101 ST MARY LA 22 101 19 51
22103 ST. TAMMANY LA 22 103 19 52
22103 ST TAMMANY LA 22 103 19 52
22105 TANGIPAHOA LA 22 105 19 53
22107 TENSAS LA 22 107 19 54
Expand Down Expand Up @@ -1222,7 +1207,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
24031 MONTGOMERY MD 24 31 21 16
24033 PRINCE GEORGE'S MD 24 33 21 17
24035 QUEEN ANNE'S MD 24 35 21 18
24037 ST. MARY'S MD 24 37 21 19
24037 ST MARY'S MD 24 37 21 19
24039 SOMERSET MD 24 39 21 20
24041 TALBOT MD 24 41 21 21
Expand Down Expand Up @@ -1317,9 +1301,7 @@ fips county_name state_abb state_fips county_fips state_code county_code
26141 PRESQUE ISLE MI 26 141 23 71
26143 ROSCOMMON MI 26 143 23 72
26145 SAGINAW MI 26 145 23 73
26147 ST. CLAIR MI 26 147 23 74
26147 ST CLAIR MI 26 147 23 74
26149 ST. JOSEPH MI 26 149 23 75
26149 ST JOSEPH MI 26 149 23 75
26151 SANILAC MI 26 151 23 76
26153 SCHOOLCRAFT MI 26 153 23 77
Expand Down Expand Up @@ -1397,7 +1379,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
27131 RICE MN 27 131 24 66
27133 ROCK MN 27 133 24 67
27135 ROSEAU MN 27 135 24 68
27137 ST. LOUIS MN 27 137 24 69
27137 ST LOUIS MN 27 137 24 69
27139 SCOTT MN 27 139 24 70
27141 SHERBURNE MN 27 141 24 71
Expand Down Expand Up @@ -1590,15 +1571,10 @@ fips county_name state_abb state_fips county_fips state_code county_code
29177 RAY MO 29 177 26 89
29179 REYNOLDS MO 29 179 26 90
29181 RIPLEY MO 29 181 26 91
29183 ST. CHARLES MO 29 183 26 92
29183 ST CHARLES MO 29 183 26 92
29185 ST. CLAIR MO 29 185 26 93
29185 ST CLAIR MO 29 185 26 93
29186 STE. GENEVIEVE MO 29 186 26 97
29186 STE GENEVIEVE MO 29 186 26 97
29187 ST. FRANCOIS MO 29 187 26 94
29187 ST FRANCOIS MO 29 187 26 94
29189 ST. LOUIS MO 29 189 26 95
29189 ST LOUIS MO 29 189 26 95
29195 SALINE MO 29 195 26 98
29197 SCHUYLER MO 29 197 26 99
Expand All @@ -1618,7 +1594,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
29225 WEBSTER MO 29 225 26 113
29227 WORTH MO 29 227 26 114
29229 WRIGHT MO 29 229 26 115
29510 ST. LOUIS CITY MO 29 510 26 96
29510 ST LOUIS CITY MO 29 510 26 96
30001 BEAVERHEAD MT 30 1 27 1
30003 BIG HORN MT 30 3 27 2
Expand Down Expand Up @@ -1894,7 +1869,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
36083 RENSSELAER NY 36 83 33 42
36085 RICHMOND NY 36 85 33 43
36087 ROCKLAND NY 36 87 33 44
36089 ST. LAWRENCE NY 36 89 33 45
36089 ST LAWRENCE NY 36 89 33 45
36091 SARATOGA NY 36 91 33 46
36093 SCHENECTADY NY 36 93 33 47
Expand Down Expand Up @@ -3153,7 +3127,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
55103 RICHLAND WI 55 103 50 53
55105 ROCK WI 55 105 50 54
55107 RUSK WI 55 107 50 55
55109 ST. CROIX WI 55 109 50 56
55109 ST CROIX WI 55 109 50 56
55111 SAUK WI 55 111 50 57
55113 SAWYER WI 55 113 50 58
Expand Down Expand Up @@ -3283,9 +3256,6 @@ fips county_name state_abb state_fips county_fips state_code county_code
72151 YABUCOA PR 72 151
72153 YAUCO PR 72 153
74300 MIDWAY ISLANDS UM 74 300
78010 ST. CROIX VI 78 10
78010 ST CROIX VI 78 10
78020 ST. JOHN VI 78 20
78020 ST JOHN VI 78 20
78030 ST. THOMAS VI 78 30
78030 ST THOMAS VI 78 30

0 comments on commit f3ebd9b

Please sign in to comment.