-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeographic_parameters.R
56 lines (50 loc) · 1.32 KB
/
geographic_parameters.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## Geography Parameters
### For extraction, analysis, and visualization scripts
# Mega Region Counties
saa <- c("Bexar",
"Comal",
"Hays",
"Guadalupe",
"Caldwell",
"Bastrop",
"Travis",
"Williamson"
)
dfw <- c("Dallas",
"Collin",
"Denton",
"Ellis",
"Hunt",
"Johnson",
"Kaufman",
"Parker",
"Rockwall",
"Tarrant",
"Wise")
all_counties <- c(saa, dfw)
county_seats <- c("San Antonio",
"New Braunfels",
"San Marcos",
"Seguin",
"Lockhart",
"Bastrop",
"Austin",
"Georgetown",
"Dallas",
"McKinney",
"Denton",
"Waxahachie",
"Greenville",
"Cleburne",
"Kaufman",
"Weatherford",
"Rockwall",
"Fort Worth",
"Decatur"
)
# Table of county names
county_table <- data.frame(all_counties, county_seats)
county_table <- county_table %>%
mutate(megaregion = ifelse(all_counties %in% saa,
"San Antonio-Austin",
"Dallas-Fort Worth"))