-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakedb.R
60 lines (48 loc) · 1.32 KB
/
makedb.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
57
58
59
60
# This R script builds the database for the Metropolitan Atlas using:
# - census.gov America FactFinder for 1990-2010 census
# - NHGIS data tables for 1950-1980 census
# - EPFL digitalized files for population by place 1950-1960
# WORKING DIRECTORY
# Make sure the working directory is set to the root of the repository,
# where this file is, to execute it.
# Source all the R files in subdirectories
source("conma.R")
source("sourceAll.R")
sourceAll()
# Set TRUE if you want to redownload the data
# This can be set for each function
d <- FALSE
# Vintage Census Codes for places
C_PlacesVintageCodes(d)
# FIPS codes and abbreviations for states
C_StateCodes(d)
# Import US Census 1950
C_SF1_Counties_1950(d)
C_SF1_Places_1950(d)
C_MetroNames_1950(d)
C_MetroDelineations_1950(d)
# Import US Census 1980
C_SF1_Counties_1980(d)
C_SF1_Places_1980(d)
C_PlaceList_1980(d)
C_MetroNames_1981(d)
C_MetroDelineations_1981(d)
# Import US Census 2000
C_SF1_Counties_2000(d)
C_SF1_Places_2000(d)
C_MetroDelineations_2003(d)
# Import US Census 2010
C_SF1_Counties_2010(d)
C_SF1_Places_2010(d)
C_PlaceList_2010(d)
C_MetroDelineations_2013(d)
C_CBSA_PrincipalCities_2013(d)
# MDPI
R_CBSA_MDPI_2007(d)
# Compute data on Metro areas
A_SMA_1950()
A_SMSA_1980()
A_CBSA_2010()
# Comprehensive historical data by County
A_MetroByCounty()
A_MetroByCounty_Export()