Part 1: Joining data in QGIS
- Download this data.
- Open the shapefile
Public_School_Locations
.
- Open the spreadsheet
SAT_Results
in QGIS. This has no spatial data associated with it currently, so select No geometry for Geometry definition.
- Open the Layer Properties for the public schools layer and click on the Joins tab on the left.
- Add a new join (+) with the
SAT_Results
layer. You will need to select Join and Target fields appropriately.
Part 2: Look at census data
- Familiarize yourself with the data available through the census using the following:
- How is uncertainty / margin of error handled by each?
Part 3: Download census data
- Go to American FactFinder.
- Select Guided Search, then click get me started.
- Download data counting owners and renters:
- Select I'm looking for information about housing.
- Expand Occupancy Characteristic.
- Click Owner/Renter (Tenure in Occupied Units) . Click Next.
- Under Select a geographic type select Census Tract.
- Select New York and then for county pick Kings.
- Select All Census Tracts within Kings County New York.
- Click Add To Your Selections.
- Repeat the steps (e)-(g) for the other counties in NYC: Bronx, New York, Queens, and Richmond.
- Click Next.
- When asked if you're looking for data for a race or ethnic group, click Skip This Step.
- Now you should see a list of available tables. Select Tenure up at the top of the list.
- Now you should see the data you selected. Click Modify Table and Transpose Rows/Columns, which should flip the table vertically and give you more rows than columns.
- Finally, click Download and OK without changing any options.
- Do the above again, this time picking something other than owners and renters. You should be able to do this by clicking 2. Topics near the top of the page.
Part 4: Join census data
- First, prepare your data:
- In Excel or some other spreadsheet program, open the owners and renters CSV downloaded in the previous part.
- Rename
HD01_VD01
to total_households
.
- Rename
HD01_VD02
to total_owners
.
- Rename
HD01_VD03
to total_renters
.
- Delete row 2, which should contain
Id
, Id2
, Geography
, etc.
- Delete all columns that do not have headers that start with
GEO
and that we did not rename.
- Now download the census tracts for New York using the Census Bureau's Cartographic Boundary Shapefiles:
- Click Census Tract under State-based Files.
- In the 2015 tab, use the dropdown to select New York.
- Finally, open both in QGIS (as you did with public schools and SAT results in Part 1) and join them.