j40-cejst-2/data/data-pipeline/data_pipeline/ipython/greenspace_indicator.ipynb
sam powers (usds) 4d9c1dd11e
2119 there are a few tracts places where the values over the 90th percentile are not showing as blue (#2160)
* ipython notebook to debug greenspace indicator

* changing greenspace and income to just greenspace

* fixing greenspace indicator to not include low income

* Update greenspace_indicator.ipynb

* running tox checks

* update score narwhal to pass smoke test (fix donut threshold)

---------

Co-authored-by: Travis Newby <travis.b.newby@omb.eop.gov>
2023-03-02 14:15:36 -06:00

2686 lines
180 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "72828ab5",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"── \u001b[1mAttaching packages\u001b[22m ─────────────────────────────────────── tidyverse 1.3.0 ──\n",
"\n",
"\u001b[32m✔\u001b[39m \u001b[34mggplot2\u001b[39m 3.3.6 \u001b[32m✔\u001b[39m \u001b[34mpurrr \u001b[39m 0.3.4\n",
"\u001b[32m✔\u001b[39m \u001b[34mtibble \u001b[39m 3.1.0 \u001b[32m✔\u001b[39m \u001b[34mdplyr \u001b[39m 1.0.5\n",
"\u001b[32m✔\u001b[39m \u001b[34mtidyr \u001b[39m 1.1.3 \u001b[32m✔\u001b[39m \u001b[34mstringr\u001b[39m 1.4.0\n",
"\u001b[32m✔\u001b[39m \u001b[34mreadr \u001b[39m 1.4.0 \u001b[32m✔\u001b[39m \u001b[34mforcats\u001b[39m 0.5.1\n",
"\n",
"── \u001b[1mConflicts\u001b[22m ────────────────────────────────────────── tidyverse_conflicts() ──\n",
"\u001b[31m✖\u001b[39m \u001b[34mdplyr\u001b[39m::\u001b[32mfilter()\u001b[39m masks \u001b[34mstats\u001b[39m::filter()\n",
"\u001b[31m✖\u001b[39m \u001b[34mdplyr\u001b[39m::\u001b[32mlag()\u001b[39m masks \u001b[34mstats\u001b[39m::lag()\n",
"\n"
]
}
],
"source": [
"library(tidyverse)\n",
"library(rjson)"
]
},
{
"cell_type": "markdown",
"id": "8ade6145",
"metadata": {},
"source": [
"Read in the downloaded data set"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "896cb958",
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"\u001b[36m──\u001b[39m \u001b[1m\u001b[1mColumn specification\u001b[1m\u001b[22m \u001b[36m────────────────────────────────────────────────────────\u001b[39m\n",
"cols(\n",
" GEOID10_TRACT = \u001b[32mcol_double()\u001b[39m,\n",
" `Does the tract have at least 35 acres in it?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Share of the tract's land area that is covered by impervious surface as a percent` = \u001b[32mcol_double()\u001b[39m,\n",
" `Share of the tract's land area that is covered by impervious surface or cropland as a percent` = \u001b[32mcol_double()\u001b[39m,\n",
" `Share of the tract's land area that is covered by cropland as a percent` = \u001b[32mcol_double()\u001b[39m\n",
")\n",
"\n",
"\n"
]
},
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 6 × 5</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>GEOID10_TRACT</th><th scope=col>Does the tract have at least 35 acres in it?</th><th scope=col>Share of the tract's land area that is covered by impervious surface as a percent</th><th scope=col>Share of the tract's land area that is covered by impervious surface or cropland as a percent</th><th scope=col>Share of the tract's land area that is covered by cropland as a percent</th></tr>\n",
"\t<tr><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;lgl&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;dbl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>27139080202</td><td>TRUE</td><td>37.3610</td><td>37.5887</td><td> 0.227730</td></tr>\n",
"\t<tr><td>27139080204</td><td>TRUE</td><td>26.8979</td><td>27.6588</td><td> 0.760943</td></tr>\n",
"\t<tr><td>27139080100</td><td>TRUE</td><td>39.4516</td><td>39.9349</td><td> 0.483341</td></tr>\n",
"\t<tr><td>27139080302</td><td>TRUE</td><td>18.2605</td><td>37.6391</td><td>19.378600</td></tr>\n",
"\t<tr><td>27139080400</td><td>TRUE</td><td>47.4381</td><td>48.4268</td><td> 0.988653</td></tr>\n",
"\t<tr><td>27139080500</td><td>TRUE</td><td>42.8099</td><td>43.9226</td><td> 1.112750</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 6 × 5\n",
"\\begin{tabular}{lllll}\n",
" GEOID10\\_TRACT & Does the tract have at least 35 acres in it? & Share of the tract's land area that is covered by impervious surface as a percent & Share of the tract's land area that is covered by impervious surface or cropland as a percent & Share of the tract's land area that is covered by cropland as a percent\\\\\n",
" <dbl> & <lgl> & <dbl> & <dbl> & <dbl>\\\\\n",
"\\hline\n",
"\t 27139080202 & TRUE & 37.3610 & 37.5887 & 0.227730\\\\\n",
"\t 27139080204 & TRUE & 26.8979 & 27.6588 & 0.760943\\\\\n",
"\t 27139080100 & TRUE & 39.4516 & 39.9349 & 0.483341\\\\\n",
"\t 27139080302 & TRUE & 18.2605 & 37.6391 & 19.378600\\\\\n",
"\t 27139080400 & TRUE & 47.4381 & 48.4268 & 0.988653\\\\\n",
"\t 27139080500 & TRUE & 42.8099 & 43.9226 & 1.112750\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 6 × 5\n",
"\n",
"| GEOID10_TRACT &lt;dbl&gt; | Does the tract have at least 35 acres in it? &lt;lgl&gt; | Share of the tract's land area that is covered by impervious surface as a percent &lt;dbl&gt; | Share of the tract's land area that is covered by impervious surface or cropland as a percent &lt;dbl&gt; | Share of the tract's land area that is covered by cropland as a percent &lt;dbl&gt; |\n",
"|---|---|---|---|---|\n",
"| 27139080202 | TRUE | 37.3610 | 37.5887 | 0.227730 |\n",
"| 27139080204 | TRUE | 26.8979 | 27.6588 | 0.760943 |\n",
"| 27139080100 | TRUE | 39.4516 | 39.9349 | 0.483341 |\n",
"| 27139080302 | TRUE | 18.2605 | 37.6391 | 19.378600 |\n",
"| 27139080400 | TRUE | 47.4381 | 48.4268 | 0.988653 |\n",
"| 27139080500 | TRUE | 42.8099 | 43.9226 | 1.112750 |\n",
"\n"
],
"text/plain": [
" GEOID10_TRACT Does the tract have at least 35 acres in it?\n",
"1 27139080202 TRUE \n",
"2 27139080204 TRUE \n",
"3 27139080100 TRUE \n",
"4 27139080302 TRUE \n",
"5 27139080400 TRUE \n",
"6 27139080500 TRUE \n",
" Share of the tract's land area that is covered by impervious surface as a percent\n",
"1 37.3610 \n",
"2 26.8979 \n",
"3 39.4516 \n",
"4 18.2605 \n",
"5 47.4381 \n",
"6 42.8099 \n",
" Share of the tract's land area that is covered by impervious surface or cropland as a percent\n",
"1 37.5887 \n",
"2 27.6588 \n",
"3 39.9349 \n",
"4 37.6391 \n",
"5 48.4268 \n",
"6 43.9226 \n",
" Share of the tract's land area that is covered by cropland as a percent\n",
"1 0.227730 \n",
"2 0.760943 \n",
"3 0.483341 \n",
"4 19.378600 \n",
"5 0.988653 \n",
"6 1.112750 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"nlcd_dat_path = list.files(\"../data/dataset/nlcd_nature_deprived\", full.names = TRUE)\n",
"nlcd_raw_dat = read_csv(nlcd_dat_path)\n",
"head(nlcd_raw_dat)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "99ea6633",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"0"
],
"text/latex": [
"0"
],
"text/markdown": [
"0"
],
"text/plain": [
"[1] 0"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"72539"
],
"text/latex": [
"72539"
],
"text/markdown": [
"72539"
],
"text/plain": [
"[1] 72539"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"impervious_in = pull(nlcd_raw_dat,4) ## impervious surfaces or cropland\n",
"sum(impervious_in[is.na(impervious_in)]) ## check for missing data\n",
"length(impervious_in)\n",
"sum(impervious_in >= quantile(impervious_in, .9)) ## calculate the number at or above 90th percentile"
]
},
{
"cell_type": "markdown",
"id": "f9489512",
"metadata": {},
"source": [
"There are 7254 tracts in the read in that have an impervious surface percent above the 90%"
]
},
{
"cell_type": "markdown",
"id": "61a16a12",
"metadata": {},
"source": [
" Then the data gets pulled into an ETL process and combined into one data set where scores are calculated. Lets check that output.\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "a8a4fb7b",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"\u001b[36m──\u001b[39m \u001b[1m\u001b[1mColumn specification\u001b[1m\u001b[22m \u001b[36m────────────────────────────────────────────────────────\u001b[39m\n",
"cols(\n",
" .default = col_double(),\n",
" GEOID10_TRACT = \u001b[31mcol_character()\u001b[39m,\n",
" `Does the tract have at least 35 acres in it?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Contains agricultural value` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Names of Tribal areas within Census tract` = \u001b[31mcol_character()\u001b[39m,\n",
" `Percent individuals age 25 or over with less than high school degree in 2009` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Percentage households below 100% of federal poverty line in 2009` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Unemployment (percent) in 2009` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Total population in 2009` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Number of Tribal areas within Census tract for Alaska` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Number of Tribal areas within Census tract` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Median household income as a percent of territory median income in 2009` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Is there at least one abandoned mine in this census tract?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Income data has been estimated based on neighbor income` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Is there at least one Formerly Used Defense Site (FUDS) in the tract?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Tract-level redlining score meets or exceeds 3.25` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Identified as disadvantaged due to tribal overlap` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Percent individuals age 25 or over with less than high school degree in 2009 (percentile)` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Percentage households below 100% of federal poverty line in 2009 (percentile)` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Unemployment (percent) in 2009 (percentile)` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Total population in 2009 (percentile)` = \u001b[33mcol_logical()\u001b[39m\n",
" # ... with 103 more columns\n",
")\n",
"\u001b[36m\u001b[39m Use \u001b[30m\u001b[47m\u001b[30m\u001b[47m`spec()`\u001b[47m\u001b[30m\u001b[49m\u001b[39m for the full column specifications.\n",
"\n",
"\n",
"Warning message:\n",
"“2219 parsing failures.\n",
" row col expected actual file\n",
"1182 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 1.0 '../data/score/csv/full/usa.csv'\n",
"1182 Number of Tribal areas within Census tract for Alaska (percentile) 1/0/T/F/TRUE/FALSE 0.19230769230769232 '../data/score/csv/full/usa.csv'\n",
"1183 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 4.0 '../data/score/csv/full/usa.csv'\n",
"1183 Number of Tribal areas within Census tract for Alaska (percentile) 1/0/T/F/TRUE/FALSE 0.6634615384615384 '../data/score/csv/full/usa.csv'\n",
"1184 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 3.0 '../data/score/csv/full/usa.csv'\n",
".... .................................................................. .................. ................... ................................\n",
"See problems(...) for more details.\n",
"”\n"
]
}
],
"source": [
"score_data_full_path = list.files(\"../data/score/csv/full\", full.names = TRUE)[2]\n",
"score_dat_full = read_csv(score_data_full_path)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "d6953e4d",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<style>\n",
".list-inline {list-style: none; margin:0; padding: 0}\n",
".list-inline>li {display: inline-block}\n",
".list-inline>li:not(:last-child)::after {content: \"\\00b7\"; padding: 0 .5ex}\n",
"</style>\n",
"<ol class=list-inline><li>'GEOID10_TRACT'</li><li>'Does the tract have at least 35 acres in it?'</li><li>'Contains agricultural value'</li><li>'Names of Tribal areas within Census tract'</li><li>'Housing burden (percent)'</li><li>'Share of homes with no kitchen or indoor plumbing (percent)'</li><li>'Total population'</li><li>'Median household income (% of state median household income)'</li><li>'Current asthma among adults aged greater than or equal to 18 years'</li><li>'Coronary heart disease among adults aged greater than or equal to 18 years'</li><li>'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years'</li><li>'Current lack of health insurance among adults aged 18-64 years'</li><li>'Diagnosed diabetes among adults aged greater than or equal to 18 years'</li><li>'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years'</li><li>'Percent of individuals &lt; 100% Federal Poverty Line'</li><li>'Percent of individuals &lt; 150% Federal Poverty Line'</li><li>'Percent of individuals below 200% Federal Poverty Line'</li><li>'Area Median Income (State or metropolitan)'</li><li>'Median household income in the past 12 months'</li><li>'Energy burden'</li><li>'FEMA Risk Index Expected Annual Loss Score'</li><li>'Urban Heuristic Flag'</li><li>'Air toxics cancer risk'</li><li>'Respiratory hazard index'</li><li>'Diesel particulate matter exposure'</li><li>'PM2.5 in the air'</li><li>'Ozone'</li><li>'Traffic proximity and volume'</li><li>'Proximity to Risk Management Plan (RMP) facilities'</li><li>'Proximity to hazardous waste sites'</li><li>'Proximity to NPL sites'</li><li>'Wastewater discharge'</li><li>'Percent pre-1960s housing (lead paint indicator)'</li><li>'Individuals under 5 years old'</li><li>'Individuals over 64 years old'</li><li>'Linguistic isolation (percent)'</li><li>'Percent of households in linguistic isolation'</li><li>'Poverty (Less than 200% of federal poverty line)'</li><li>'Percent individuals age 25 or over with less than high school degree'</li><li>'Unemployment (percent)'</li><li>'Median value ($) of owner-occupied housing units'</li><li>'Percent enrollment in college or graduate school'</li><li>'Percent of population not currently enrolled in college or graduate school'</li><li>'Expected building loss rate (Natural Hazards Risk Index)'</li><li>'Expected agricultural loss rate (Natural Hazards Risk Index)'</li><li>'Expected population loss rate (Natural Hazards Risk Index)'</li><li>'Percent individuals age 25 or over with less than high school degree in 2009'</li><li>'Percentage households below 100% of federal poverty line in 2009'</li><li>'Unemployment (percent) in 2009'</li><li>'Unemployment (percent) in 2010'</li><li>'Percent of individuals less than 100% Federal Poverty Line in 2010'</li><li>'Total population in 2009'</li><li>'Leaky underground storage tanks'</li><li>'DOT Travel Barriers Score'</li><li>'Share of properties at risk of flood in 30 years'</li><li>'Share of properties at risk of fire in 30 years'</li><li>'Share of the tract\\'s land area that is covered by impervious surface or cropland as a percent'</li><li>'Percent of individuals below 200% Federal Poverty Line, imputed and adjusted'</li><li>'Percent Black or African American'</li><li>'Percent American Indian / Alaska Native'</li><li>'Percent Asian'</li><li>'Percent Native Hawaiian or Pacific'</li><li>'Percent two or more races'</li><li>'Percent White'</li><li>'Percent Hispanic or Latino'</li><li>'Percent other races'</li><li>'Percent age under 10'</li><li>'Percent age 10 to 64'</li><li>'Percent age over 64'</li><li>'Percent of the Census tract that is within Tribal areas'</li><li>'Number of Tribal areas within Census tract for Alaska'</li><li>'Number of Tribal areas within Census tract'</li><li>'Percent of the Census tract that is within Tribal areas, for display'</li><li>'Median household income as a percent of area median income'</li><li>'Life expectancy (years)'</li><li>'Median household income as a percent of territory median income in 2009'</li><li>'Is there at least one abandoned mine in this census tract?'</li><li>'Income data has been estimated based on neighbor income'</li><li>'Is there at least one Formerly Used Defense Site (FUDS) in the tract?'</li><li>'Tract-level redlining score meets or exceeds 3.25'</li><li>'Identified as disadvantaged due to tribal overlap'</li><li>'Housing burden (percent) (percentile)'</li><li>'Share of homes with no kitchen or indoor plumbing (percent) (percentile)'</li><li>'Total population (percentile)'</li><li>'Median household income (% of state median household income) (percentile)'</li><li>'Current asthma among adults aged greater than or equal to 18 years (percentile)'</li><li>'Coronary heart disease among adults aged greater than or equal to 18 years (percentile)'</li><li>'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile)'</li><li>'Current lack of health insurance among adults aged 18-64 years (percentile)'</li><li>'Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile)'</li><li>'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile)'</li><li>'Percent of individuals &lt; 100% Federal Poverty Line (percentile)'</li><li>'Percent of individuals &lt; 150% Federal Poverty Line (percentile)'</li><li>'Percent of individuals below 200% Federal Poverty Line (percentile)'</li><li>'Area Median Income (State or metropolitan) (percentile)'</li><li>'Median household income in the past 12 months (percentile)'</li><li>'Energy burden (percentile)'</li><li>'FEMA Risk Index Expected Annual Loss Score (percentile)'</li><li>'Urban Heuristic Flag (percentile)'</li><li>'Air toxics cancer risk (percentile)'</li><li>'Respiratory hazard index (percentile)'</li><li>'Diesel particulate matter exposure (percentile)'</li><li>'PM2.5 in the air (percentile)'</li><li>'Ozone (percentile)'</li><li>'Traffic proximity and volume (percentile)'</li><li>'Proximity to Risk Management Plan (RMP) facilities (percentile)'</li><li>'Proximity to hazardous waste sites (percentile)'</li><li>'Proximity to NPL sites (percentile)'</li><li>'Wastewater discharge (percentile)'</li><li>'Percent pre-1960s housing (lead paint indicator) (percentile)'</li><li>'Individuals under 5 years old (percentile)'</li><li>'Individuals over 64 years old (percentile)'</li><li>'Linguistic isolation (percent) (percentile)'</li><li>'Percent of households in linguistic isolation (percentile)'</li><li>'Poverty (Less than 200% of federal poverty line) (percentile)'</li><li>'Percent individuals age 25 or over with less than high school degree (percentile)'</li><li>'Unemployment (percent) (percentile)'</li><li>'Median value ($) of owner-occupied housing units (percentile)'</li><li>'Percent enrollment in college or graduate school (percentile)'</li><li>'Percent of population not currently enrolled in college or graduate school (percentile)'</li><li>'Expected building loss rate (Natural Hazards Risk Index) (percentile)'</li><li>'Expected agricultural loss rate (Natural Hazards Risk Index) (percentile)'</li><li>'Expected population loss rate (Natural Hazards Risk Index) (percentile)'</li><li>'Percent individuals age 25 or over with less than high school degree in 2009 (percentile)'</li><li>'Percentage households below 100% of federal poverty line in 2009 (percentile)'</li><li>'Unemployment (percent) in 2009 (percentile)'</li><li>'Unemployment (percent) in 2010 (percentile)'</li><li>'Percent of individuals less than 100% Federal Poverty Line in 2010 (percentile)'</li><li>'Total population in 2009 (percentile)'</li><li>'Leaky underground storage tanks (percentile)'</li><li>'DOT Travel Barriers Score (percentile)'</li><li>'Share of properties at risk of flood in 30 years (percentile)'</li><li>'Share of properties at risk of fire in 30 years (percentile)'</li><li>'Share of the tract\\'s land area that is covered by impervious surface or cropland as a percent (percentile)'</li><li>'Percent of individuals below 200% Federal Poverty Line, imputed and adjusted (percentile)'</li><li>'Percent Black or African American (percentile)'</li><li>'Percent American Indian / Alaska Native (percentile)'</li><li>'Percent Asian (percentile)'</li><li>'Percent Native Hawaiian or Pacific (percentile)'</li><li>'Percent two or more races (percentile)'</li><li>'Percent White (percentile)'</li><li>'Percent Hispanic or Latino (percentile)'</li><li>'Percent other races (percentile)'</li><li>'Percent age under 10 (percentile)'</li><li>'Percent age 10 to 64 (percentile)'</li><li>'Percent age over 64 (percentile)'</li><li>'Percent of the Census tract that is within Tribal areas (percentile)'</li><li>'Number of Tribal areas within Census tract for Alaska (percentile)'</li><li>'Number of Tribal areas within Census tract (percentile)'</li><li>'Percent of the Census tract that is within Tribal areas, for display (percentile)'</li><li>'Percent Black or African American in 2009 (percentile)'</li><li>'Percent American Indian / Alaska Native in 2009 (percentile)'</li><li>'Percent Asian in 2009 (percentile)'</li><li>'Percent Native Hawaiian or Pacific in 2009 (percentile)'</li><li>'Percent two or more races in 2009 (percentile)'</li><li>'Percent White in 2009 (percentile)'</li><li>'Percent Hispanic or Latino in 2009 (percentile)'</li><li>'Percent other races in 2009 (percentile)'</li><li>'Low median household income as a percent of area median income (percentile)'</li><li>'Low life expectancy (percentile)'</li><li>'Low median household income as a percent of territory median income in 2009 (percentile)'</li><li>'Total population in 2009 (island areas) and 2019 (states and PR)'</li><li>'Total threshold criteria exceeded'</li><li>'Is low income (imputed and adjusted)?'</li><li>'Greater than or equal to the 90th percentile for expected population loss'</li><li>'Greater than or equal to the 90th percentile for expected agricultural loss'</li><li>'Greater than or equal to the 90th percentile for expected building loss'</li><li>'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years'</li><li>'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years'</li><li>'At least one climate threshold exceeded'</li><li>'Greater than or equal to the 90th percentile for expected population loss rate and is low income?'</li><li>'Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?'</li><li>'Greater than or equal to the 90th percentile for expected building loss rate and is low income?'</li><li>'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?'</li><li>'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?'</li><li>'Climate Factor (Definition N)'</li><li>'Greater than or equal to the 90th percentile for energy burden'</li><li>'Greater than or equal to the 90th percentile for pm2.5 exposure'</li><li>'At least one energy threshold exceeded'</li><li>'Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?'</li><li>'Greater than or equal to the 90th percentile for energy burden and is low income?'</li><li>'Energy Factor (Definition N)'</li><li>'Greater than or equal to the 90th percentile for diesel particulate matter'</li><li>'Greater than or equal to the 90th percentile for DOT travel barriers'</li><li>'Greater than or equal to the 90th percentile for traffic proximity'</li><li>'At least one traffic threshold exceeded'</li><li>'Greater than or equal to the 90th percentile for diesel particulate matter and is low income?'</li><li>'Greater than or equal to the 90th percentile for traffic proximity and is low income?'</li><li>'Greater than or equal to the 90th percentile for DOT transit barriers and is low income?'</li><li>'Transportation Factor (Definition N)'</li><li>'Tract-level redlining score meets or exceeds 3.25 and is low income'</li><li>'Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen'</li><li>'Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?'</li><li>'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile'</li><li>'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?'</li><li>'Greater than or equal to the 90th percentile for housing burden'</li><li>'Greater than or equal to the 90th percentile for housing burden and is low income?'</li><li>'Greater than or equal to the 90th percentile for share of the tract\\'s land area that is covered by impervious surface or cropland as a percent'</li><li>'Greater than or equal to the 90th percentile for share of the tract\\'s land area that is covered by impervious surface or cropland as a percent and is low income?'</li><li>'At least one housing threshold exceeded'</li><li>'Housing Factor (Definition N)'</li><li>'Greater than or equal to the 90th percentile for RMP proximity'</li><li>'Greater than or equal to the 90th percentile for NPL (superfund sites) proximity'</li><li>'Greater than or equal to the 90th percentile for proximity to hazardous waste sites'</li><li>'Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?'</li><li>'Is there at least one abandoned mine in this census tract, where missing data is treated as False?'</li><li>'At least one pollution threshold exceeded'</li><li>'Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?'</li><li>'Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?'</li><li>'Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?'</li><li>'There is at least one abandoned mine in this census tract and the tract is low income.'</li><li>'There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.'</li><li>'Pollution Factor (Definition N)'</li><li>'Greater than or equal to the 90th percentile for wastewater discharge'</li><li>'Greater than or equal to the 90th percentile for leaky underwater storage tanks'</li><li>'Greater than or equal to the 90th percentile for wastewater discharge and is low income?'</li><li>'Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?'</li><li>'At least one water threshold exceeded'</li><li>'Water Factor (Definition N)'</li><li>'Greater than or equal to the 90th percentile for diabetes'</li><li>'Greater than or equal to the 90th percentile for asthma'</li><li>'Greater than or equal to the 90th percentile for heart disease'</li><li>'Greater than or equal to the 90th percentile for low life expectancy'</li><li>'At least one health threshold exceeded'</li><li>'Greater than or equal to the 90th percentile for diabetes and is low income?'</li><li>'Greater than or equal to the 90th percentile for asthma and is low income?'</li><li>'Greater than or equal to the 90th percentile for heart disease and is low income?'</li><li>'Greater than or equal to the 90th percentile for low life expectancy and is low income?'</li><li>'Health Factor (Definition N)'</li><li>'Low high school education'</li><li>'Greater than or equal to the 90th percentile for unemployment'</li><li>'Greater than or equal to the 90th percentile for low median household income as a percent of area median income'</li><li>'Greater than or equal to the 90th percentile for households in linguistic isolation'</li><li>'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level'</li><li>'Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?'</li><li>'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS attainment?'</li><li>'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?'</li><li>'Greater than or equal to the 90th percentile for unemployment and has low HS attainment?'</li><li>'At least one workforce threshold exceeded'</li><li>'Unemployment (percent) in 2009 (island areas) and 2010 (states and PR)'</li><li>'Unemployment (percent) in 2009 for island areas (percentile)'</li><li>'Unemployment (percent) in 2009 exceeds 90th percentile'</li><li>'Percentage households below 100% of federal poverty line in 2009 (island areas) and 2010 (states and PR)'</li><li>'Percentage households below 100% of federal poverty line in 2009 for island areas (percentile)'</li><li>'Percentage households below 100% of federal poverty line in 2009 exceeds 90th percentile'</li><li>'Low median household income as a percent of territory median income in 2009 exceeds 90th percentile'</li><li>'Low high school education in 2009 (island areas)'</li><li>'Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?'</li><li>'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS education in 2009 (island areas)?'</li><li>'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?'</li><li>'Both workforce socioeconomic indicators exceeded'</li><li>'Workforce Factor (Definition N)'</li><li>'Total categories exceeded'</li><li>'Definition N (communities)'</li><li>'Definition N (communities) (percentile)'</li><li>'Meets the less stringent low income criterion for the adjacency index?'</li><li>'Definition N (communities) (average of neighbors)'</li><li>'Is the tract surrounded by disadvantaged communities?'</li><li>'Definition N (communities) (based on adjacency index and low income alone)'</li><li>'Definition N community, including adjacency index tracts'</li><li>'Percentage of tract that is disadvantaged'</li></ol>\n"
],
"text/latex": [
"\\begin{enumerate*}\n",
"\\item 'GEOID10\\_TRACT'\n",
"\\item 'Does the tract have at least 35 acres in it?'\n",
"\\item 'Contains agricultural value'\n",
"\\item 'Names of Tribal areas within Census tract'\n",
"\\item 'Housing burden (percent)'\n",
"\\item 'Share of homes with no kitchen or indoor plumbing (percent)'\n",
"\\item 'Total population'\n",
"\\item 'Median household income (\\% of state median household income)'\n",
"\\item 'Current asthma among adults aged greater than or equal to 18 years'\n",
"\\item 'Coronary heart disease among adults aged greater than or equal to 18 years'\n",
"\\item 'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years'\n",
"\\item 'Current lack of health insurance among adults aged 18-64 years'\n",
"\\item 'Diagnosed diabetes among adults aged greater than or equal to 18 years'\n",
"\\item 'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years'\n",
"\\item 'Percent of individuals < 100\\% Federal Poverty Line'\n",
"\\item 'Percent of individuals < 150\\% Federal Poverty Line'\n",
"\\item 'Percent of individuals below 200\\% Federal Poverty Line'\n",
"\\item 'Area Median Income (State or metropolitan)'\n",
"\\item 'Median household income in the past 12 months'\n",
"\\item 'Energy burden'\n",
"\\item 'FEMA Risk Index Expected Annual Loss Score'\n",
"\\item 'Urban Heuristic Flag'\n",
"\\item 'Air toxics cancer risk'\n",
"\\item 'Respiratory hazard index'\n",
"\\item 'Diesel particulate matter exposure'\n",
"\\item 'PM2.5 in the air'\n",
"\\item 'Ozone'\n",
"\\item 'Traffic proximity and volume'\n",
"\\item 'Proximity to Risk Management Plan (RMP) facilities'\n",
"\\item 'Proximity to hazardous waste sites'\n",
"\\item 'Proximity to NPL sites'\n",
"\\item 'Wastewater discharge'\n",
"\\item 'Percent pre-1960s housing (lead paint indicator)'\n",
"\\item 'Individuals under 5 years old'\n",
"\\item 'Individuals over 64 years old'\n",
"\\item 'Linguistic isolation (percent)'\n",
"\\item 'Percent of households in linguistic isolation'\n",
"\\item 'Poverty (Less than 200\\% of federal poverty line)'\n",
"\\item 'Percent individuals age 25 or over with less than high school degree'\n",
"\\item 'Unemployment (percent)'\n",
"\\item 'Median value (\\$) of owner-occupied housing units'\n",
"\\item 'Percent enrollment in college or graduate school'\n",
"\\item 'Percent of population not currently enrolled in college or graduate school'\n",
"\\item 'Expected building loss rate (Natural Hazards Risk Index)'\n",
"\\item 'Expected agricultural loss rate (Natural Hazards Risk Index)'\n",
"\\item 'Expected population loss rate (Natural Hazards Risk Index)'\n",
"\\item 'Percent individuals age 25 or over with less than high school degree in 2009'\n",
"\\item 'Percentage households below 100\\% of federal poverty line in 2009'\n",
"\\item 'Unemployment (percent) in 2009'\n",
"\\item 'Unemployment (percent) in 2010'\n",
"\\item 'Percent of individuals less than 100\\% Federal Poverty Line in 2010'\n",
"\\item 'Total population in 2009'\n",
"\\item 'Leaky underground storage tanks'\n",
"\\item 'DOT Travel Barriers Score'\n",
"\\item 'Share of properties at risk of flood in 30 years'\n",
"\\item 'Share of properties at risk of fire in 30 years'\n",
"\\item 'Share of the tract\\textbackslash{}'s land area that is covered by impervious surface or cropland as a percent'\n",
"\\item 'Percent of individuals below 200\\% Federal Poverty Line, imputed and adjusted'\n",
"\\item 'Percent Black or African American'\n",
"\\item 'Percent American Indian / Alaska Native'\n",
"\\item 'Percent Asian'\n",
"\\item 'Percent Native Hawaiian or Pacific'\n",
"\\item 'Percent two or more races'\n",
"\\item 'Percent White'\n",
"\\item 'Percent Hispanic or Latino'\n",
"\\item 'Percent other races'\n",
"\\item 'Percent age under 10'\n",
"\\item 'Percent age 10 to 64'\n",
"\\item 'Percent age over 64'\n",
"\\item 'Percent of the Census tract that is within Tribal areas'\n",
"\\item 'Number of Tribal areas within Census tract for Alaska'\n",
"\\item 'Number of Tribal areas within Census tract'\n",
"\\item 'Percent of the Census tract that is within Tribal areas, for display'\n",
"\\item 'Median household income as a percent of area median income'\n",
"\\item 'Life expectancy (years)'\n",
"\\item 'Median household income as a percent of territory median income in 2009'\n",
"\\item 'Is there at least one abandoned mine in this census tract?'\n",
"\\item 'Income data has been estimated based on neighbor income'\n",
"\\item 'Is there at least one Formerly Used Defense Site (FUDS) in the tract?'\n",
"\\item 'Tract-level redlining score meets or exceeds 3.25'\n",
"\\item 'Identified as disadvantaged due to tribal overlap'\n",
"\\item 'Housing burden (percent) (percentile)'\n",
"\\item 'Share of homes with no kitchen or indoor plumbing (percent) (percentile)'\n",
"\\item 'Total population (percentile)'\n",
"\\item 'Median household income (\\% of state median household income) (percentile)'\n",
"\\item 'Current asthma among adults aged greater than or equal to 18 years (percentile)'\n",
"\\item 'Coronary heart disease among adults aged greater than or equal to 18 years (percentile)'\n",
"\\item 'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile)'\n",
"\\item 'Current lack of health insurance among adults aged 18-64 years (percentile)'\n",
"\\item 'Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile)'\n",
"\\item 'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile)'\n",
"\\item 'Percent of individuals < 100\\% Federal Poverty Line (percentile)'\n",
"\\item 'Percent of individuals < 150\\% Federal Poverty Line (percentile)'\n",
"\\item 'Percent of individuals below 200\\% Federal Poverty Line (percentile)'\n",
"\\item 'Area Median Income (State or metropolitan) (percentile)'\n",
"\\item 'Median household income in the past 12 months (percentile)'\n",
"\\item 'Energy burden (percentile)'\n",
"\\item 'FEMA Risk Index Expected Annual Loss Score (percentile)'\n",
"\\item 'Urban Heuristic Flag (percentile)'\n",
"\\item 'Air toxics cancer risk (percentile)'\n",
"\\item 'Respiratory hazard index (percentile)'\n",
"\\item 'Diesel particulate matter exposure (percentile)'\n",
"\\item 'PM2.5 in the air (percentile)'\n",
"\\item 'Ozone (percentile)'\n",
"\\item 'Traffic proximity and volume (percentile)'\n",
"\\item 'Proximity to Risk Management Plan (RMP) facilities (percentile)'\n",
"\\item 'Proximity to hazardous waste sites (percentile)'\n",
"\\item 'Proximity to NPL sites (percentile)'\n",
"\\item 'Wastewater discharge (percentile)'\n",
"\\item 'Percent pre-1960s housing (lead paint indicator) (percentile)'\n",
"\\item 'Individuals under 5 years old (percentile)'\n",
"\\item 'Individuals over 64 years old (percentile)'\n",
"\\item 'Linguistic isolation (percent) (percentile)'\n",
"\\item 'Percent of households in linguistic isolation (percentile)'\n",
"\\item 'Poverty (Less than 200\\% of federal poverty line) (percentile)'\n",
"\\item 'Percent individuals age 25 or over with less than high school degree (percentile)'\n",
"\\item 'Unemployment (percent) (percentile)'\n",
"\\item 'Median value (\\$) of owner-occupied housing units (percentile)'\n",
"\\item 'Percent enrollment in college or graduate school (percentile)'\n",
"\\item 'Percent of population not currently enrolled in college or graduate school (percentile)'\n",
"\\item 'Expected building loss rate (Natural Hazards Risk Index) (percentile)'\n",
"\\item 'Expected agricultural loss rate (Natural Hazards Risk Index) (percentile)'\n",
"\\item 'Expected population loss rate (Natural Hazards Risk Index) (percentile)'\n",
"\\item 'Percent individuals age 25 or over with less than high school degree in 2009 (percentile)'\n",
"\\item 'Percentage households below 100\\% of federal poverty line in 2009 (percentile)'\n",
"\\item 'Unemployment (percent) in 2009 (percentile)'\n",
"\\item 'Unemployment (percent) in 2010 (percentile)'\n",
"\\item 'Percent of individuals less than 100\\% Federal Poverty Line in 2010 (percentile)'\n",
"\\item 'Total population in 2009 (percentile)'\n",
"\\item 'Leaky underground storage tanks (percentile)'\n",
"\\item 'DOT Travel Barriers Score (percentile)'\n",
"\\item 'Share of properties at risk of flood in 30 years (percentile)'\n",
"\\item 'Share of properties at risk of fire in 30 years (percentile)'\n",
"\\item 'Share of the tract\\textbackslash{}'s land area that is covered by impervious surface or cropland as a percent (percentile)'\n",
"\\item 'Percent of individuals below 200\\% Federal Poverty Line, imputed and adjusted (percentile)'\n",
"\\item 'Percent Black or African American (percentile)'\n",
"\\item 'Percent American Indian / Alaska Native (percentile)'\n",
"\\item 'Percent Asian (percentile)'\n",
"\\item 'Percent Native Hawaiian or Pacific (percentile)'\n",
"\\item 'Percent two or more races (percentile)'\n",
"\\item 'Percent White (percentile)'\n",
"\\item 'Percent Hispanic or Latino (percentile)'\n",
"\\item 'Percent other races (percentile)'\n",
"\\item 'Percent age under 10 (percentile)'\n",
"\\item 'Percent age 10 to 64 (percentile)'\n",
"\\item 'Percent age over 64 (percentile)'\n",
"\\item 'Percent of the Census tract that is within Tribal areas (percentile)'\n",
"\\item 'Number of Tribal areas within Census tract for Alaska (percentile)'\n",
"\\item 'Number of Tribal areas within Census tract (percentile)'\n",
"\\item 'Percent of the Census tract that is within Tribal areas, for display (percentile)'\n",
"\\item 'Percent Black or African American in 2009 (percentile)'\n",
"\\item 'Percent American Indian / Alaska Native in 2009 (percentile)'\n",
"\\item 'Percent Asian in 2009 (percentile)'\n",
"\\item 'Percent Native Hawaiian or Pacific in 2009 (percentile)'\n",
"\\item 'Percent two or more races in 2009 (percentile)'\n",
"\\item 'Percent White in 2009 (percentile)'\n",
"\\item 'Percent Hispanic or Latino in 2009 (percentile)'\n",
"\\item 'Percent other races in 2009 (percentile)'\n",
"\\item 'Low median household income as a percent of area median income (percentile)'\n",
"\\item 'Low life expectancy (percentile)'\n",
"\\item 'Low median household income as a percent of territory median income in 2009 (percentile)'\n",
"\\item 'Total population in 2009 (island areas) and 2019 (states and PR)'\n",
"\\item 'Total threshold criteria exceeded'\n",
"\\item 'Is low income (imputed and adjusted)?'\n",
"\\item 'Greater than or equal to the 90th percentile for expected population loss'\n",
"\\item 'Greater than or equal to the 90th percentile for expected agricultural loss'\n",
"\\item 'Greater than or equal to the 90th percentile for expected building loss'\n",
"\\item 'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years'\n",
"\\item 'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years'\n",
"\\item 'At least one climate threshold exceeded'\n",
"\\item 'Greater than or equal to the 90th percentile for expected population loss rate and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for expected building loss rate and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?'\n",
"\\item 'Climate Factor (Definition N)'\n",
"\\item 'Greater than or equal to the 90th percentile for energy burden'\n",
"\\item 'Greater than or equal to the 90th percentile for pm2.5 exposure'\n",
"\\item 'At least one energy threshold exceeded'\n",
"\\item 'Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for energy burden and is low income?'\n",
"\\item 'Energy Factor (Definition N)'\n",
"\\item 'Greater than or equal to the 90th percentile for diesel particulate matter'\n",
"\\item 'Greater than or equal to the 90th percentile for DOT travel barriers'\n",
"\\item 'Greater than or equal to the 90th percentile for traffic proximity'\n",
"\\item 'At least one traffic threshold exceeded'\n",
"\\item 'Greater than or equal to the 90th percentile for diesel particulate matter and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for traffic proximity and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for DOT transit barriers and is low income?'\n",
"\\item 'Transportation Factor (Definition N)'\n",
"\\item 'Tract-level redlining score meets or exceeds 3.25 and is low income'\n",
"\\item 'Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen'\n",
"\\item 'Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile'\n",
"\\item 'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for housing burden'\n",
"\\item 'Greater than or equal to the 90th percentile for housing burden and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for share of the tract\\textbackslash{}'s land area that is covered by impervious surface or cropland as a percent'\n",
"\\item 'Greater than or equal to the 90th percentile for share of the tract\\textbackslash{}'s land area that is covered by impervious surface or cropland as a percent and is low income?'\n",
"\\item 'At least one housing threshold exceeded'\n",
"\\item 'Housing Factor (Definition N)'\n",
"\\item 'Greater than or equal to the 90th percentile for RMP proximity'\n",
"\\item 'Greater than or equal to the 90th percentile for NPL (superfund sites) proximity'\n",
"\\item 'Greater than or equal to the 90th percentile for proximity to hazardous waste sites'\n",
"\\item 'Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?'\n",
"\\item 'Is there at least one abandoned mine in this census tract, where missing data is treated as False?'\n",
"\\item 'At least one pollution threshold exceeded'\n",
"\\item 'Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?'\n",
"\\item 'There is at least one abandoned mine in this census tract and the tract is low income.'\n",
"\\item 'There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.'\n",
"\\item 'Pollution Factor (Definition N)'\n",
"\\item 'Greater than or equal to the 90th percentile for wastewater discharge'\n",
"\\item 'Greater than or equal to the 90th percentile for leaky underwater storage tanks'\n",
"\\item 'Greater than or equal to the 90th percentile for wastewater discharge and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?'\n",
"\\item 'At least one water threshold exceeded'\n",
"\\item 'Water Factor (Definition N)'\n",
"\\item 'Greater than or equal to the 90th percentile for diabetes'\n",
"\\item 'Greater than or equal to the 90th percentile for asthma'\n",
"\\item 'Greater than or equal to the 90th percentile for heart disease'\n",
"\\item 'Greater than or equal to the 90th percentile for low life expectancy'\n",
"\\item 'At least one health threshold exceeded'\n",
"\\item 'Greater than or equal to the 90th percentile for diabetes and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for asthma and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for heart disease and is low income?'\n",
"\\item 'Greater than or equal to the 90th percentile for low life expectancy and is low income?'\n",
"\\item 'Health Factor (Definition N)'\n",
"\\item 'Low high school education'\n",
"\\item 'Greater than or equal to the 90th percentile for unemployment'\n",
"\\item 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income'\n",
"\\item 'Greater than or equal to the 90th percentile for households in linguistic isolation'\n",
"\\item 'Greater than or equal to the 90th percentile for households at or below 100\\% federal poverty level'\n",
"\\item 'Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?'\n",
"\\item 'Greater than or equal to the 90th percentile for households at or below 100\\% federal poverty level and has low HS attainment?'\n",
"\\item 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?'\n",
"\\item 'Greater than or equal to the 90th percentile for unemployment and has low HS attainment?'\n",
"\\item 'At least one workforce threshold exceeded'\n",
"\\item 'Unemployment (percent) in 2009 (island areas) and 2010 (states and PR)'\n",
"\\item 'Unemployment (percent) in 2009 for island areas (percentile)'\n",
"\\item 'Unemployment (percent) in 2009 exceeds 90th percentile'\n",
"\\item 'Percentage households below 100\\% of federal poverty line in 2009 (island areas) and 2010 (states and PR)'\n",
"\\item 'Percentage households below 100\\% of federal poverty line in 2009 for island areas (percentile)'\n",
"\\item 'Percentage households below 100\\% of federal poverty line in 2009 exceeds 90th percentile'\n",
"\\item 'Low median household income as a percent of territory median income in 2009 exceeds 90th percentile'\n",
"\\item 'Low high school education in 2009 (island areas)'\n",
"\\item 'Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?'\n",
"\\item 'Greater than or equal to the 90th percentile for households at or below 100\\% federal poverty level and has low HS education in 2009 (island areas)?'\n",
"\\item 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?'\n",
"\\item 'Both workforce socioeconomic indicators exceeded'\n",
"\\item 'Workforce Factor (Definition N)'\n",
"\\item 'Total categories exceeded'\n",
"\\item 'Definition N (communities)'\n",
"\\item 'Definition N (communities) (percentile)'\n",
"\\item 'Meets the less stringent low income criterion for the adjacency index?'\n",
"\\item 'Definition N (communities) (average of neighbors)'\n",
"\\item 'Is the tract surrounded by disadvantaged communities?'\n",
"\\item 'Definition N (communities) (based on adjacency index and low income alone)'\n",
"\\item 'Definition N community, including adjacency index tracts'\n",
"\\item 'Percentage of tract that is disadvantaged'\n",
"\\end{enumerate*}\n"
],
"text/markdown": [
"1. 'GEOID10_TRACT'\n",
"2. 'Does the tract have at least 35 acres in it?'\n",
"3. 'Contains agricultural value'\n",
"4. 'Names of Tribal areas within Census tract'\n",
"5. 'Housing burden (percent)'\n",
"6. 'Share of homes with no kitchen or indoor plumbing (percent)'\n",
"7. 'Total population'\n",
"8. 'Median household income (% of state median household income)'\n",
"9. 'Current asthma among adults aged greater than or equal to 18 years'\n",
"10. 'Coronary heart disease among adults aged greater than or equal to 18 years'\n",
"11. 'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years'\n",
"12. 'Current lack of health insurance among adults aged 18-64 years'\n",
"13. 'Diagnosed diabetes among adults aged greater than or equal to 18 years'\n",
"14. 'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years'\n",
"15. 'Percent of individuals &lt; 100% Federal Poverty Line'\n",
"16. 'Percent of individuals &lt; 150% Federal Poverty Line'\n",
"17. 'Percent of individuals below 200% Federal Poverty Line'\n",
"18. 'Area Median Income (State or metropolitan)'\n",
"19. 'Median household income in the past 12 months'\n",
"20. 'Energy burden'\n",
"21. 'FEMA Risk Index Expected Annual Loss Score'\n",
"22. 'Urban Heuristic Flag'\n",
"23. 'Air toxics cancer risk'\n",
"24. 'Respiratory hazard index'\n",
"25. 'Diesel particulate matter exposure'\n",
"26. 'PM2.5 in the air'\n",
"27. 'Ozone'\n",
"28. 'Traffic proximity and volume'\n",
"29. 'Proximity to Risk Management Plan (RMP) facilities'\n",
"30. 'Proximity to hazardous waste sites'\n",
"31. 'Proximity to NPL sites'\n",
"32. 'Wastewater discharge'\n",
"33. 'Percent pre-1960s housing (lead paint indicator)'\n",
"34. 'Individuals under 5 years old'\n",
"35. 'Individuals over 64 years old'\n",
"36. 'Linguistic isolation (percent)'\n",
"37. 'Percent of households in linguistic isolation'\n",
"38. 'Poverty (Less than 200% of federal poverty line)'\n",
"39. 'Percent individuals age 25 or over with less than high school degree'\n",
"40. 'Unemployment (percent)'\n",
"41. 'Median value ($) of owner-occupied housing units'\n",
"42. 'Percent enrollment in college or graduate school'\n",
"43. 'Percent of population not currently enrolled in college or graduate school'\n",
"44. 'Expected building loss rate (Natural Hazards Risk Index)'\n",
"45. 'Expected agricultural loss rate (Natural Hazards Risk Index)'\n",
"46. 'Expected population loss rate (Natural Hazards Risk Index)'\n",
"47. 'Percent individuals age 25 or over with less than high school degree in 2009'\n",
"48. 'Percentage households below 100% of federal poverty line in 2009'\n",
"49. 'Unemployment (percent) in 2009'\n",
"50. 'Unemployment (percent) in 2010'\n",
"51. 'Percent of individuals less than 100% Federal Poverty Line in 2010'\n",
"52. 'Total population in 2009'\n",
"53. 'Leaky underground storage tanks'\n",
"54. 'DOT Travel Barriers Score'\n",
"55. 'Share of properties at risk of flood in 30 years'\n",
"56. 'Share of properties at risk of fire in 30 years'\n",
"57. 'Share of the tract\\'s land area that is covered by impervious surface or cropland as a percent'\n",
"58. 'Percent of individuals below 200% Federal Poverty Line, imputed and adjusted'\n",
"59. 'Percent Black or African American'\n",
"60. 'Percent American Indian / Alaska Native'\n",
"61. 'Percent Asian'\n",
"62. 'Percent Native Hawaiian or Pacific'\n",
"63. 'Percent two or more races'\n",
"64. 'Percent White'\n",
"65. 'Percent Hispanic or Latino'\n",
"66. 'Percent other races'\n",
"67. 'Percent age under 10'\n",
"68. 'Percent age 10 to 64'\n",
"69. 'Percent age over 64'\n",
"70. 'Percent of the Census tract that is within Tribal areas'\n",
"71. 'Number of Tribal areas within Census tract for Alaska'\n",
"72. 'Number of Tribal areas within Census tract'\n",
"73. 'Percent of the Census tract that is within Tribal areas, for display'\n",
"74. 'Median household income as a percent of area median income'\n",
"75. 'Life expectancy (years)'\n",
"76. 'Median household income as a percent of territory median income in 2009'\n",
"77. 'Is there at least one abandoned mine in this census tract?'\n",
"78. 'Income data has been estimated based on neighbor income'\n",
"79. 'Is there at least one Formerly Used Defense Site (FUDS) in the tract?'\n",
"80. 'Tract-level redlining score meets or exceeds 3.25'\n",
"81. 'Identified as disadvantaged due to tribal overlap'\n",
"82. 'Housing burden (percent) (percentile)'\n",
"83. 'Share of homes with no kitchen or indoor plumbing (percent) (percentile)'\n",
"84. 'Total population (percentile)'\n",
"85. 'Median household income (% of state median household income) (percentile)'\n",
"86. 'Current asthma among adults aged greater than or equal to 18 years (percentile)'\n",
"87. 'Coronary heart disease among adults aged greater than or equal to 18 years (percentile)'\n",
"88. 'Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile)'\n",
"89. 'Current lack of health insurance among adults aged 18-64 years (percentile)'\n",
"90. 'Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile)'\n",
"91. 'Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile)'\n",
"92. 'Percent of individuals &lt; 100% Federal Poverty Line (percentile)'\n",
"93. 'Percent of individuals &lt; 150% Federal Poverty Line (percentile)'\n",
"94. 'Percent of individuals below 200% Federal Poverty Line (percentile)'\n",
"95. 'Area Median Income (State or metropolitan) (percentile)'\n",
"96. 'Median household income in the past 12 months (percentile)'\n",
"97. 'Energy burden (percentile)'\n",
"98. 'FEMA Risk Index Expected Annual Loss Score (percentile)'\n",
"99. 'Urban Heuristic Flag (percentile)'\n",
"100. 'Air toxics cancer risk (percentile)'\n",
"101. 'Respiratory hazard index (percentile)'\n",
"102. 'Diesel particulate matter exposure (percentile)'\n",
"103. 'PM2.5 in the air (percentile)'\n",
"104. 'Ozone (percentile)'\n",
"105. 'Traffic proximity and volume (percentile)'\n",
"106. 'Proximity to Risk Management Plan (RMP) facilities (percentile)'\n",
"107. 'Proximity to hazardous waste sites (percentile)'\n",
"108. 'Proximity to NPL sites (percentile)'\n",
"109. 'Wastewater discharge (percentile)'\n",
"110. 'Percent pre-1960s housing (lead paint indicator) (percentile)'\n",
"111. 'Individuals under 5 years old (percentile)'\n",
"112. 'Individuals over 64 years old (percentile)'\n",
"113. 'Linguistic isolation (percent) (percentile)'\n",
"114. 'Percent of households in linguistic isolation (percentile)'\n",
"115. 'Poverty (Less than 200% of federal poverty line) (percentile)'\n",
"116. 'Percent individuals age 25 or over with less than high school degree (percentile)'\n",
"117. 'Unemployment (percent) (percentile)'\n",
"118. 'Median value ($) of owner-occupied housing units (percentile)'\n",
"119. 'Percent enrollment in college or graduate school (percentile)'\n",
"120. 'Percent of population not currently enrolled in college or graduate school (percentile)'\n",
"121. 'Expected building loss rate (Natural Hazards Risk Index) (percentile)'\n",
"122. 'Expected agricultural loss rate (Natural Hazards Risk Index) (percentile)'\n",
"123. 'Expected population loss rate (Natural Hazards Risk Index) (percentile)'\n",
"124. 'Percent individuals age 25 or over with less than high school degree in 2009 (percentile)'\n",
"125. 'Percentage households below 100% of federal poverty line in 2009 (percentile)'\n",
"126. 'Unemployment (percent) in 2009 (percentile)'\n",
"127. 'Unemployment (percent) in 2010 (percentile)'\n",
"128. 'Percent of individuals less than 100% Federal Poverty Line in 2010 (percentile)'\n",
"129. 'Total population in 2009 (percentile)'\n",
"130. 'Leaky underground storage tanks (percentile)'\n",
"131. 'DOT Travel Barriers Score (percentile)'\n",
"132. 'Share of properties at risk of flood in 30 years (percentile)'\n",
"133. 'Share of properties at risk of fire in 30 years (percentile)'\n",
"134. 'Share of the tract\\'s land area that is covered by impervious surface or cropland as a percent (percentile)'\n",
"135. 'Percent of individuals below 200% Federal Poverty Line, imputed and adjusted (percentile)'\n",
"136. 'Percent Black or African American (percentile)'\n",
"137. 'Percent American Indian / Alaska Native (percentile)'\n",
"138. 'Percent Asian (percentile)'\n",
"139. 'Percent Native Hawaiian or Pacific (percentile)'\n",
"140. 'Percent two or more races (percentile)'\n",
"141. 'Percent White (percentile)'\n",
"142. 'Percent Hispanic or Latino (percentile)'\n",
"143. 'Percent other races (percentile)'\n",
"144. 'Percent age under 10 (percentile)'\n",
"145. 'Percent age 10 to 64 (percentile)'\n",
"146. 'Percent age over 64 (percentile)'\n",
"147. 'Percent of the Census tract that is within Tribal areas (percentile)'\n",
"148. 'Number of Tribal areas within Census tract for Alaska (percentile)'\n",
"149. 'Number of Tribal areas within Census tract (percentile)'\n",
"150. 'Percent of the Census tract that is within Tribal areas, for display (percentile)'\n",
"151. 'Percent Black or African American in 2009 (percentile)'\n",
"152. 'Percent American Indian / Alaska Native in 2009 (percentile)'\n",
"153. 'Percent Asian in 2009 (percentile)'\n",
"154. 'Percent Native Hawaiian or Pacific in 2009 (percentile)'\n",
"155. 'Percent two or more races in 2009 (percentile)'\n",
"156. 'Percent White in 2009 (percentile)'\n",
"157. 'Percent Hispanic or Latino in 2009 (percentile)'\n",
"158. 'Percent other races in 2009 (percentile)'\n",
"159. 'Low median household income as a percent of area median income (percentile)'\n",
"160. 'Low life expectancy (percentile)'\n",
"161. 'Low median household income as a percent of territory median income in 2009 (percentile)'\n",
"162. 'Total population in 2009 (island areas) and 2019 (states and PR)'\n",
"163. 'Total threshold criteria exceeded'\n",
"164. 'Is low income (imputed and adjusted)?'\n",
"165. 'Greater than or equal to the 90th percentile for expected population loss'\n",
"166. 'Greater than or equal to the 90th percentile for expected agricultural loss'\n",
"167. 'Greater than or equal to the 90th percentile for expected building loss'\n",
"168. 'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years'\n",
"169. 'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years'\n",
"170. 'At least one climate threshold exceeded'\n",
"171. 'Greater than or equal to the 90th percentile for expected population loss rate and is low income?'\n",
"172. 'Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?'\n",
"173. 'Greater than or equal to the 90th percentile for expected building loss rate and is low income?'\n",
"174. 'Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?'\n",
"175. 'Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?'\n",
"176. 'Climate Factor (Definition N)'\n",
"177. 'Greater than or equal to the 90th percentile for energy burden'\n",
"178. 'Greater than or equal to the 90th percentile for pm2.5 exposure'\n",
"179. 'At least one energy threshold exceeded'\n",
"180. 'Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?'\n",
"181. 'Greater than or equal to the 90th percentile for energy burden and is low income?'\n",
"182. 'Energy Factor (Definition N)'\n",
"183. 'Greater than or equal to the 90th percentile for diesel particulate matter'\n",
"184. 'Greater than or equal to the 90th percentile for DOT travel barriers'\n",
"185. 'Greater than or equal to the 90th percentile for traffic proximity'\n",
"186. 'At least one traffic threshold exceeded'\n",
"187. 'Greater than or equal to the 90th percentile for diesel particulate matter and is low income?'\n",
"188. 'Greater than or equal to the 90th percentile for traffic proximity and is low income?'\n",
"189. 'Greater than or equal to the 90th percentile for DOT transit barriers and is low income?'\n",
"190. 'Transportation Factor (Definition N)'\n",
"191. 'Tract-level redlining score meets or exceeds 3.25 and is low income'\n",
"192. 'Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen'\n",
"193. 'Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?'\n",
"194. 'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile'\n",
"195. 'Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?'\n",
"196. 'Greater than or equal to the 90th percentile for housing burden'\n",
"197. 'Greater than or equal to the 90th percentile for housing burden and is low income?'\n",
"198. 'Greater than or equal to the 90th percentile for share of the tract\\'s land area that is covered by impervious surface or cropland as a percent'\n",
"199. 'Greater than or equal to the 90th percentile for share of the tract\\'s land area that is covered by impervious surface or cropland as a percent and is low income?'\n",
"200. 'At least one housing threshold exceeded'\n",
"201. 'Housing Factor (Definition N)'\n",
"202. 'Greater than or equal to the 90th percentile for RMP proximity'\n",
"203. 'Greater than or equal to the 90th percentile for NPL (superfund sites) proximity'\n",
"204. 'Greater than or equal to the 90th percentile for proximity to hazardous waste sites'\n",
"205. 'Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?'\n",
"206. 'Is there at least one abandoned mine in this census tract, where missing data is treated as False?'\n",
"207. 'At least one pollution threshold exceeded'\n",
"208. 'Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?'\n",
"209. 'Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?'\n",
"210. 'Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?'\n",
"211. 'There is at least one abandoned mine in this census tract and the tract is low income.'\n",
"212. 'There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.'\n",
"213. 'Pollution Factor (Definition N)'\n",
"214. 'Greater than or equal to the 90th percentile for wastewater discharge'\n",
"215. 'Greater than or equal to the 90th percentile for leaky underwater storage tanks'\n",
"216. 'Greater than or equal to the 90th percentile for wastewater discharge and is low income?'\n",
"217. 'Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?'\n",
"218. 'At least one water threshold exceeded'\n",
"219. 'Water Factor (Definition N)'\n",
"220. 'Greater than or equal to the 90th percentile for diabetes'\n",
"221. 'Greater than or equal to the 90th percentile for asthma'\n",
"222. 'Greater than or equal to the 90th percentile for heart disease'\n",
"223. 'Greater than or equal to the 90th percentile for low life expectancy'\n",
"224. 'At least one health threshold exceeded'\n",
"225. 'Greater than or equal to the 90th percentile for diabetes and is low income?'\n",
"226. 'Greater than or equal to the 90th percentile for asthma and is low income?'\n",
"227. 'Greater than or equal to the 90th percentile for heart disease and is low income?'\n",
"228. 'Greater than or equal to the 90th percentile for low life expectancy and is low income?'\n",
"229. 'Health Factor (Definition N)'\n",
"230. 'Low high school education'\n",
"231. 'Greater than or equal to the 90th percentile for unemployment'\n",
"232. 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income'\n",
"233. 'Greater than or equal to the 90th percentile for households in linguistic isolation'\n",
"234. 'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level'\n",
"235. 'Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?'\n",
"236. 'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS attainment?'\n",
"237. 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?'\n",
"238. 'Greater than or equal to the 90th percentile for unemployment and has low HS attainment?'\n",
"239. 'At least one workforce threshold exceeded'\n",
"240. 'Unemployment (percent) in 2009 (island areas) and 2010 (states and PR)'\n",
"241. 'Unemployment (percent) in 2009 for island areas (percentile)'\n",
"242. 'Unemployment (percent) in 2009 exceeds 90th percentile'\n",
"243. 'Percentage households below 100% of federal poverty line in 2009 (island areas) and 2010 (states and PR)'\n",
"244. 'Percentage households below 100% of federal poverty line in 2009 for island areas (percentile)'\n",
"245. 'Percentage households below 100% of federal poverty line in 2009 exceeds 90th percentile'\n",
"246. 'Low median household income as a percent of territory median income in 2009 exceeds 90th percentile'\n",
"247. 'Low high school education in 2009 (island areas)'\n",
"248. 'Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?'\n",
"249. 'Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS education in 2009 (island areas)?'\n",
"250. 'Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?'\n",
"251. 'Both workforce socioeconomic indicators exceeded'\n",
"252. 'Workforce Factor (Definition N)'\n",
"253. 'Total categories exceeded'\n",
"254. 'Definition N (communities)'\n",
"255. 'Definition N (communities) (percentile)'\n",
"256. 'Meets the less stringent low income criterion for the adjacency index?'\n",
"257. 'Definition N (communities) (average of neighbors)'\n",
"258. 'Is the tract surrounded by disadvantaged communities?'\n",
"259. 'Definition N (communities) (based on adjacency index and low income alone)'\n",
"260. 'Definition N community, including adjacency index tracts'\n",
"261. 'Percentage of tract that is disadvantaged'\n",
"\n",
"\n"
],
"text/plain": [
" [1] \"GEOID10_TRACT\" \n",
" [2] \"Does the tract have at least 35 acres in it?\" \n",
" [3] \"Contains agricultural value\" \n",
" [4] \"Names of Tribal areas within Census tract\" \n",
" [5] \"Housing burden (percent)\" \n",
" [6] \"Share of homes with no kitchen or indoor plumbing (percent)\" \n",
" [7] \"Total population\" \n",
" [8] \"Median household income (% of state median household income)\" \n",
" [9] \"Current asthma among adults aged greater than or equal to 18 years\" \n",
" [10] \"Coronary heart disease among adults aged greater than or equal to 18 years\" \n",
" [11] \"Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years\" \n",
" [12] \"Current lack of health insurance among adults aged 18-64 years\" \n",
" [13] \"Diagnosed diabetes among adults aged greater than or equal to 18 years\" \n",
" [14] \"Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years\" \n",
" [15] \"Percent of individuals < 100% Federal Poverty Line\" \n",
" [16] \"Percent of individuals < 150% Federal Poverty Line\" \n",
" [17] \"Percent of individuals below 200% Federal Poverty Line\" \n",
" [18] \"Area Median Income (State or metropolitan)\" \n",
" [19] \"Median household income in the past 12 months\" \n",
" [20] \"Energy burden\" \n",
" [21] \"FEMA Risk Index Expected Annual Loss Score\" \n",
" [22] \"Urban Heuristic Flag\" \n",
" [23] \"Air toxics cancer risk\" \n",
" [24] \"Respiratory hazard index\" \n",
" [25] \"Diesel particulate matter exposure\" \n",
" [26] \"PM2.5 in the air\" \n",
" [27] \"Ozone\" \n",
" [28] \"Traffic proximity and volume\" \n",
" [29] \"Proximity to Risk Management Plan (RMP) facilities\" \n",
" [30] \"Proximity to hazardous waste sites\" \n",
" [31] \"Proximity to NPL sites\" \n",
" [32] \"Wastewater discharge\" \n",
" [33] \"Percent pre-1960s housing (lead paint indicator)\" \n",
" [34] \"Individuals under 5 years old\" \n",
" [35] \"Individuals over 64 years old\" \n",
" [36] \"Linguistic isolation (percent)\" \n",
" [37] \"Percent of households in linguistic isolation\" \n",
" [38] \"Poverty (Less than 200% of federal poverty line)\" \n",
" [39] \"Percent individuals age 25 or over with less than high school degree\" \n",
" [40] \"Unemployment (percent)\" \n",
" [41] \"Median value ($) of owner-occupied housing units\" \n",
" [42] \"Percent enrollment in college or graduate school\" \n",
" [43] \"Percent of population not currently enrolled in college or graduate school\" \n",
" [44] \"Expected building loss rate (Natural Hazards Risk Index)\" \n",
" [45] \"Expected agricultural loss rate (Natural Hazards Risk Index)\" \n",
" [46] \"Expected population loss rate (Natural Hazards Risk Index)\" \n",
" [47] \"Percent individuals age 25 or over with less than high school degree in 2009\" \n",
" [48] \"Percentage households below 100% of federal poverty line in 2009\" \n",
" [49] \"Unemployment (percent) in 2009\" \n",
" [50] \"Unemployment (percent) in 2010\" \n",
" [51] \"Percent of individuals less than 100% Federal Poverty Line in 2010\" \n",
" [52] \"Total population in 2009\" \n",
" [53] \"Leaky underground storage tanks\" \n",
" [54] \"DOT Travel Barriers Score\" \n",
" [55] \"Share of properties at risk of flood in 30 years\" \n",
" [56] \"Share of properties at risk of fire in 30 years\" \n",
" [57] \"Share of the tract's land area that is covered by impervious surface or cropland as a percent\" \n",
" [58] \"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted\" \n",
" [59] \"Percent Black or African American\" \n",
" [60] \"Percent American Indian / Alaska Native\" \n",
" [61] \"Percent Asian\" \n",
" [62] \"Percent Native Hawaiian or Pacific\" \n",
" [63] \"Percent two or more races\" \n",
" [64] \"Percent White\" \n",
" [65] \"Percent Hispanic or Latino\" \n",
" [66] \"Percent other races\" \n",
" [67] \"Percent age under 10\" \n",
" [68] \"Percent age 10 to 64\" \n",
" [69] \"Percent age over 64\" \n",
" [70] \"Percent of the Census tract that is within Tribal areas\" \n",
" [71] \"Number of Tribal areas within Census tract for Alaska\" \n",
" [72] \"Number of Tribal areas within Census tract\" \n",
" [73] \"Percent of the Census tract that is within Tribal areas, for display\" \n",
" [74] \"Median household income as a percent of area median income\" \n",
" [75] \"Life expectancy (years)\" \n",
" [76] \"Median household income as a percent of territory median income in 2009\" \n",
" [77] \"Is there at least one abandoned mine in this census tract?\" \n",
" [78] \"Income data has been estimated based on neighbor income\" \n",
" [79] \"Is there at least one Formerly Used Defense Site (FUDS) in the tract?\" \n",
" [80] \"Tract-level redlining score meets or exceeds 3.25\" \n",
" [81] \"Identified as disadvantaged due to tribal overlap\" \n",
" [82] \"Housing burden (percent) (percentile)\" \n",
" [83] \"Share of homes with no kitchen or indoor plumbing (percent) (percentile)\" \n",
" [84] \"Total population (percentile)\" \n",
" [85] \"Median household income (% of state median household income) (percentile)\" \n",
" [86] \"Current asthma among adults aged greater than or equal to 18 years (percentile)\" \n",
" [87] \"Coronary heart disease among adults aged greater than or equal to 18 years (percentile)\" \n",
" [88] \"Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile)\" \n",
" [89] \"Current lack of health insurance among adults aged 18-64 years (percentile)\" \n",
" [90] \"Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile)\" \n",
" [91] \"Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile)\" \n",
" [92] \"Percent of individuals < 100% Federal Poverty Line (percentile)\" \n",
" [93] \"Percent of individuals < 150% Federal Poverty Line (percentile)\" \n",
" [94] \"Percent of individuals below 200% Federal Poverty Line (percentile)\" \n",
" [95] \"Area Median Income (State or metropolitan) (percentile)\" \n",
" [96] \"Median household income in the past 12 months (percentile)\" \n",
" [97] \"Energy burden (percentile)\" \n",
" [98] \"FEMA Risk Index Expected Annual Loss Score (percentile)\" \n",
" [99] \"Urban Heuristic Flag (percentile)\" \n",
"[100] \"Air toxics cancer risk (percentile)\" \n",
"[101] \"Respiratory hazard index (percentile)\" \n",
"[102] \"Diesel particulate matter exposure (percentile)\" \n",
"[103] \"PM2.5 in the air (percentile)\" \n",
"[104] \"Ozone (percentile)\" \n",
"[105] \"Traffic proximity and volume (percentile)\" \n",
"[106] \"Proximity to Risk Management Plan (RMP) facilities (percentile)\" \n",
"[107] \"Proximity to hazardous waste sites (percentile)\" \n",
"[108] \"Proximity to NPL sites (percentile)\" \n",
"[109] \"Wastewater discharge (percentile)\" \n",
"[110] \"Percent pre-1960s housing (lead paint indicator) (percentile)\" \n",
"[111] \"Individuals under 5 years old (percentile)\" \n",
"[112] \"Individuals over 64 years old (percentile)\" \n",
"[113] \"Linguistic isolation (percent) (percentile)\" \n",
"[114] \"Percent of households in linguistic isolation (percentile)\" \n",
"[115] \"Poverty (Less than 200% of federal poverty line) (percentile)\" \n",
"[116] \"Percent individuals age 25 or over with less than high school degree (percentile)\" \n",
"[117] \"Unemployment (percent) (percentile)\" \n",
"[118] \"Median value ($) of owner-occupied housing units (percentile)\" \n",
"[119] \"Percent enrollment in college or graduate school (percentile)\" \n",
"[120] \"Percent of population not currently enrolled in college or graduate school (percentile)\" \n",
"[121] \"Expected building loss rate (Natural Hazards Risk Index) (percentile)\" \n",
"[122] \"Expected agricultural loss rate (Natural Hazards Risk Index) (percentile)\" \n",
"[123] \"Expected population loss rate (Natural Hazards Risk Index) (percentile)\" \n",
"[124] \"Percent individuals age 25 or over with less than high school degree in 2009 (percentile)\" \n",
"[125] \"Percentage households below 100% of federal poverty line in 2009 (percentile)\" \n",
"[126] \"Unemployment (percent) in 2009 (percentile)\" \n",
"[127] \"Unemployment (percent) in 2010 (percentile)\" \n",
"[128] \"Percent of individuals less than 100% Federal Poverty Line in 2010 (percentile)\" \n",
"[129] \"Total population in 2009 (percentile)\" \n",
"[130] \"Leaky underground storage tanks (percentile)\" \n",
"[131] \"DOT Travel Barriers Score (percentile)\" \n",
"[132] \"Share of properties at risk of flood in 30 years (percentile)\" \n",
"[133] \"Share of properties at risk of fire in 30 years (percentile)\" \n",
"[134] \"Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)\" \n",
"[135] \"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted (percentile)\" \n",
"[136] \"Percent Black or African American (percentile)\" \n",
"[137] \"Percent American Indian / Alaska Native (percentile)\" \n",
"[138] \"Percent Asian (percentile)\" \n",
"[139] \"Percent Native Hawaiian or Pacific (percentile)\" \n",
"[140] \"Percent two or more races (percentile)\" \n",
"[141] \"Percent White (percentile)\" \n",
"[142] \"Percent Hispanic or Latino (percentile)\" \n",
"[143] \"Percent other races (percentile)\" \n",
"[144] \"Percent age under 10 (percentile)\" \n",
"[145] \"Percent age 10 to 64 (percentile)\" \n",
"[146] \"Percent age over 64 (percentile)\" \n",
"[147] \"Percent of the Census tract that is within Tribal areas (percentile)\" \n",
"[148] \"Number of Tribal areas within Census tract for Alaska (percentile)\" \n",
"[149] \"Number of Tribal areas within Census tract (percentile)\" \n",
"[150] \"Percent of the Census tract that is within Tribal areas, for display (percentile)\" \n",
"[151] \"Percent Black or African American in 2009 (percentile)\" \n",
"[152] \"Percent American Indian / Alaska Native in 2009 (percentile)\" \n",
"[153] \"Percent Asian in 2009 (percentile)\" \n",
"[154] \"Percent Native Hawaiian or Pacific in 2009 (percentile)\" \n",
"[155] \"Percent two or more races in 2009 (percentile)\" \n",
"[156] \"Percent White in 2009 (percentile)\" \n",
"[157] \"Percent Hispanic or Latino in 2009 (percentile)\" \n",
"[158] \"Percent other races in 2009 (percentile)\" \n",
"[159] \"Low median household income as a percent of area median income (percentile)\" \n",
"[160] \"Low life expectancy (percentile)\" \n",
"[161] \"Low median household income as a percent of territory median income in 2009 (percentile)\" \n",
"[162] \"Total population in 2009 (island areas) and 2019 (states and PR)\" \n",
"[163] \"Total threshold criteria exceeded\" \n",
"[164] \"Is low income (imputed and adjusted)?\" \n",
"[165] \"Greater than or equal to the 90th percentile for expected population loss\" \n",
"[166] \"Greater than or equal to the 90th percentile for expected agricultural loss\" \n",
"[167] \"Greater than or equal to the 90th percentile for expected building loss\" \n",
"[168] \"Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years\" \n",
"[169] \"Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years\" \n",
"[170] \"At least one climate threshold exceeded\" \n",
"[171] \"Greater than or equal to the 90th percentile for expected population loss rate and is low income?\" \n",
"[172] \"Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?\" \n",
"[173] \"Greater than or equal to the 90th percentile for expected building loss rate and is low income?\" \n",
"[174] \"Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?\" \n",
"[175] \"Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?\" \n",
"[176] \"Climate Factor (Definition N)\" \n",
"[177] \"Greater than or equal to the 90th percentile for energy burden\" \n",
"[178] \"Greater than or equal to the 90th percentile for pm2.5 exposure\" \n",
"[179] \"At least one energy threshold exceeded\" \n",
"[180] \"Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?\" \n",
"[181] \"Greater than or equal to the 90th percentile for energy burden and is low income?\" \n",
"[182] \"Energy Factor (Definition N)\" \n",
"[183] \"Greater than or equal to the 90th percentile for diesel particulate matter\" \n",
"[184] \"Greater than or equal to the 90th percentile for DOT travel barriers\" \n",
"[185] \"Greater than or equal to the 90th percentile for traffic proximity\" \n",
"[186] \"At least one traffic threshold exceeded\" \n",
"[187] \"Greater than or equal to the 90th percentile for diesel particulate matter and is low income?\" \n",
"[188] \"Greater than or equal to the 90th percentile for traffic proximity and is low income?\" \n",
"[189] \"Greater than or equal to the 90th percentile for DOT transit barriers and is low income?\" \n",
"[190] \"Transportation Factor (Definition N)\" \n",
"[191] \"Tract-level redlining score meets or exceeds 3.25 and is low income\" \n",
"[192] \"Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen\" \n",
"[193] \"Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?\" \n",
"[194] \"Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile\" \n",
"[195] \"Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?\" \n",
"[196] \"Greater than or equal to the 90th percentile for housing burden\" \n",
"[197] \"Greater than or equal to the 90th percentile for housing burden and is low income?\" \n",
"[198] \"Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent\" \n",
"[199] \"Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?\"\n",
"[200] \"At least one housing threshold exceeded\" \n",
"[201] \"Housing Factor (Definition N)\" \n",
"[202] \"Greater than or equal to the 90th percentile for RMP proximity\" \n",
"[203] \"Greater than or equal to the 90th percentile for NPL (superfund sites) proximity\" \n",
"[204] \"Greater than or equal to the 90th percentile for proximity to hazardous waste sites\" \n",
"[205] \"Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?\" \n",
"[206] \"Is there at least one abandoned mine in this census tract, where missing data is treated as False?\" \n",
"[207] \"At least one pollution threshold exceeded\" \n",
"[208] \"Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?\" \n",
"[209] \"Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?\" \n",
"[210] \"Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?\" \n",
"[211] \"There is at least one abandoned mine in this census tract and the tract is low income.\" \n",
"[212] \"There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.\" \n",
"[213] \"Pollution Factor (Definition N)\" \n",
"[214] \"Greater than or equal to the 90th percentile for wastewater discharge\" \n",
"[215] \"Greater than or equal to the 90th percentile for leaky underwater storage tanks\" \n",
"[216] \"Greater than or equal to the 90th percentile for wastewater discharge and is low income?\" \n",
"[217] \"Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?\" \n",
"[218] \"At least one water threshold exceeded\" \n",
"[219] \"Water Factor (Definition N)\" \n",
"[220] \"Greater than or equal to the 90th percentile for diabetes\" \n",
"[221] \"Greater than or equal to the 90th percentile for asthma\" \n",
"[222] \"Greater than or equal to the 90th percentile for heart disease\" \n",
"[223] \"Greater than or equal to the 90th percentile for low life expectancy\" \n",
"[224] \"At least one health threshold exceeded\" \n",
"[225] \"Greater than or equal to the 90th percentile for diabetes and is low income?\" \n",
"[226] \"Greater than or equal to the 90th percentile for asthma and is low income?\" \n",
"[227] \"Greater than or equal to the 90th percentile for heart disease and is low income?\" \n",
"[228] \"Greater than or equal to the 90th percentile for low life expectancy and is low income?\" \n",
"[229] \"Health Factor (Definition N)\" \n",
"[230] \"Low high school education\" \n",
"[231] \"Greater than or equal to the 90th percentile for unemployment\" \n",
"[232] \"Greater than or equal to the 90th percentile for low median household income as a percent of area median income\" \n",
"[233] \"Greater than or equal to the 90th percentile for households in linguistic isolation\" \n",
"[234] \"Greater than or equal to the 90th percentile for households at or below 100% federal poverty level\" \n",
"[235] \"Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?\" \n",
"[236] \"Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS attainment?\" \n",
"[237] \"Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?\" \n",
"[238] \"Greater than or equal to the 90th percentile for unemployment and has low HS attainment?\" \n",
"[239] \"At least one workforce threshold exceeded\" \n",
"[240] \"Unemployment (percent) in 2009 (island areas) and 2010 (states and PR)\" \n",
"[241] \"Unemployment (percent) in 2009 for island areas (percentile)\" \n",
"[242] \"Unemployment (percent) in 2009 exceeds 90th percentile\" \n",
"[243] \"Percentage households below 100% of federal poverty line in 2009 (island areas) and 2010 (states and PR)\" \n",
"[244] \"Percentage households below 100% of federal poverty line in 2009 for island areas (percentile)\" \n",
"[245] \"Percentage households below 100% of federal poverty line in 2009 exceeds 90th percentile\" \n",
"[246] \"Low median household income as a percent of territory median income in 2009 exceeds 90th percentile\" \n",
"[247] \"Low high school education in 2009 (island areas)\" \n",
"[248] \"Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?\" \n",
"[249] \"Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS education in 2009 (island areas)?\" \n",
"[250] \"Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?\" \n",
"[251] \"Both workforce socioeconomic indicators exceeded\" \n",
"[252] \"Workforce Factor (Definition N)\" \n",
"[253] \"Total categories exceeded\" \n",
"[254] \"Definition N (communities)\" \n",
"[255] \"Definition N (communities) (percentile)\" \n",
"[256] \"Meets the less stringent low income criterion for the adjacency index?\" \n",
"[257] \"Definition N (communities) (average of neighbors)\" \n",
"[258] \"Is the tract surrounded by disadvantaged communities?\" \n",
"[259] \"Definition N (communities) (based on adjacency index and low income alone)\" \n",
"[260] \"Definition N community, including adjacency index tracts\" \n",
"[261] \"Percentage of tract that is disadvantaged\" "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 6 × 4</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>Share of the tract's land area that is covered by impervious surface or cropland as a percent</th><th scope=col>Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)</th><th scope=col>Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent</th><th scope=col>Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?</th></tr>\n",
"\t<tr><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;lgl&gt;</th><th scope=col>&lt;lgl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>21.2475</td><td>0.2685590</td><td>FALSE</td><td>FALSE</td></tr>\n",
"\t<tr><td>42.1254</td><td>0.5569694</td><td>FALSE</td><td>FALSE</td></tr>\n",
"\t<tr><td>18.3748</td><td>0.2323578</td><td>FALSE</td><td>FALSE</td></tr>\n",
"\t<tr><td>37.9230</td><td>0.4961469</td><td>FALSE</td><td>FALSE</td></tr>\n",
"\t<tr><td>51.4835</td><td>0.6894912</td><td>FALSE</td><td>FALSE</td></tr>\n",
"\t<tr><td>54.5483</td><td>0.7298005</td><td>FALSE</td><td>FALSE</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 6 × 4\n",
"\\begin{tabular}{llll}\n",
" Share of the tract's land area that is covered by impervious surface or cropland as a percent & Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile) & Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent & Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?\\\\\n",
" <dbl> & <dbl> & <lgl> & <lgl>\\\\\n",
"\\hline\n",
"\t 21.2475 & 0.2685590 & FALSE & FALSE\\\\\n",
"\t 42.1254 & 0.5569694 & FALSE & FALSE\\\\\n",
"\t 18.3748 & 0.2323578 & FALSE & FALSE\\\\\n",
"\t 37.9230 & 0.4961469 & FALSE & FALSE\\\\\n",
"\t 51.4835 & 0.6894912 & FALSE & FALSE\\\\\n",
"\t 54.5483 & 0.7298005 & FALSE & FALSE\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 6 × 4\n",
"\n",
"| Share of the tract's land area that is covered by impervious surface or cropland as a percent &lt;dbl&gt; | Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile) &lt;dbl&gt; | Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent &lt;lgl&gt; | Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income? &lt;lgl&gt; |\n",
"|---|---|---|---|\n",
"| 21.2475 | 0.2685590 | FALSE | FALSE |\n",
"| 42.1254 | 0.5569694 | FALSE | FALSE |\n",
"| 18.3748 | 0.2323578 | FALSE | FALSE |\n",
"| 37.9230 | 0.4961469 | FALSE | FALSE |\n",
"| 51.4835 | 0.6894912 | FALSE | FALSE |\n",
"| 54.5483 | 0.7298005 | FALSE | FALSE |\n",
"\n"
],
"text/plain": [
" Share of the tract's land area that is covered by impervious surface or cropland as a percent\n",
"1 21.2475 \n",
"2 42.1254 \n",
"3 18.3748 \n",
"4 37.9230 \n",
"5 51.4835 \n",
"6 54.5483 \n",
" Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)\n",
"1 0.2685590 \n",
"2 0.5569694 \n",
"3 0.2323578 \n",
"4 0.4961469 \n",
"5 0.6894912 \n",
"6 0.7298005 \n",
" Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent\n",
"1 FALSE \n",
"2 FALSE \n",
"3 FALSE \n",
"4 FALSE \n",
"5 FALSE \n",
"6 FALSE \n",
" Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?\n",
"1 FALSE \n",
"2 FALSE \n",
"3 FALSE \n",
"4 FALSE \n",
"5 FALSE \n",
"6 FALSE "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"score_full_cols = colnames(score_dat_full)\n",
"score_full_cols\n",
"impervious_cols = score_full_cols[grepl(\"impervious\", score_full_cols)]\n",
"score_dat_impervious = score_dat_full[,impervious_cols ]\n",
"head(score_dat_impervious)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "90f2ec46",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"1595"
],
"text/latex": [
"1595"
],
"text/markdown": [
"1595"
],
"text/plain": [
"[1] 1595"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"1595"
],
"text/latex": [
"1595"
],
"text/markdown": [
"1595"
],
"text/plain": [
"[1] 1595"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# check base score.\n",
"sum(is.na(score_dat_impervious[,1]))\n",
"nrow(score_dat_impervious) - length(impervious_in) ## the missing tracts were initiated after the join. they aren't in the original data set. Its likely because of the CONUS issue. \n",
"sum(score_dat_impervious[,1] >= quantile(score_dat_impervious[,1], .9, na.rm = TRUE), na.rm = TRUE) ## calculate the number at or above 90th percentile"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "0aa90b2b",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Check the calculated percentile\n",
"sum(score_dat_impervious[, 2] >= .9, na.rm = TRUE)\n",
"## the calculated percentile lines up"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "8ec31ba9",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Check in on the TRUE/FALSE Flag\n",
"sum(score_dat_impervious[,3] == TRUE)\n",
"## okay, the flag here is correct as well. So where does it go wrong?"
]
},
{
"cell_type": "markdown",
"id": "a8199ac4",
"metadata": {},
"source": [
"Next, the data gets post processed to add in demographic information about the tracts"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "bcd854e3",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"\u001b[36m──\u001b[39m \u001b[1m\u001b[1mColumn specification\u001b[1m\u001b[22m \u001b[36m────────────────────────────────────────────────────────\u001b[39m\n",
"cols(\n",
" .default = col_double(),\n",
" `Census tract 2010 ID` = \u001b[31mcol_character()\u001b[39m,\n",
" `County Name` = \u001b[31mcol_character()\u001b[39m,\n",
" `State/Territory` = \u001b[31mcol_character()\u001b[39m,\n",
" `Identified as disadvantaged without considering neighbors` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Identified as disadvantaged based on neighbors and relaxed low income threshold only` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Identified as disadvantaged due to tribal overlap` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Identified as disadvantaged` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Income data has been estimated based on geographic neighbor income` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for expected building loss rate and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for expected population loss rate and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for energy burden and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for diesel particulate matter and is low income?` = \u001b[33mcol_logical()\u001b[39m,\n",
" `Greater than or equal to the 90th percentile for traffic proximity and is low income?` = \u001b[33mcol_logical()\u001b[39m\n",
" # ... with 32 more columns\n",
")\n",
"\u001b[36m\u001b[39m Use \u001b[30m\u001b[47m\u001b[30m\u001b[47m`spec()`\u001b[47m\u001b[30m\u001b[49m\u001b[39m for the full column specifications.\n",
"\n",
"\n",
"Warning message:\n",
"“52 parsing failures.\n",
" row col expected actual file\n",
"1182 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 8.0 '../data/score/downloadable/beta-communities.csv'\n",
"1183 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 4.0 '../data/score/downloadable/beta-communities.csv'\n",
"1184 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 1.0 '../data/score/downloadable/beta-communities.csv'\n",
"1185 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 1.0 '../data/score/downloadable/beta-communities.csv'\n",
"1203 Number of Tribal areas within Census tract for Alaska 1/0/T/F/TRUE/FALSE 5.0 '../data/score/downloadable/beta-communities.csv'\n",
".... ..................................................... .................. ...... .................................................\n",
"See problems(...) for more details.\n",
"”\n"
]
}
],
"source": [
"score_post_full_path = list.files(\"../data/score/downloadable\", pattern = \".csv\", full.names = TRUE)[3]\n",
"score_post = read_csv(score_post_full_path)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "ad43a10e",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 6 × 4</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?</th><th scope=col>Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent</th><th scope=col>Share of the tract's land area that is covered by impervious surface or cropland as a percent</th><th scope=col>Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)</th></tr>\n",
"\t<tr><th scope=col>&lt;lgl&gt;</th><th scope=col>&lt;lgl&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;dbl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td> 760</td><td>10</td></tr>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td>2058</td><td>26</td></tr>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td>2353</td><td>29</td></tr>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td>2333</td><td>29</td></tr>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td>3955</td><td>51</td></tr>\n",
"\t<tr><td>FALSE</td><td>FALSE</td><td>1937</td><td>24</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 6 × 4\n",
"\\begin{tabular}{llll}\n",
" Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income? & Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent & Share of the tract's land area that is covered by impervious surface or cropland as a percent & Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)\\\\\n",
" <lgl> & <lgl> & <dbl> & <dbl>\\\\\n",
"\\hline\n",
"\t FALSE & FALSE & 760 & 10\\\\\n",
"\t FALSE & FALSE & 2058 & 26\\\\\n",
"\t FALSE & FALSE & 2353 & 29\\\\\n",
"\t FALSE & FALSE & 2333 & 29\\\\\n",
"\t FALSE & FALSE & 3955 & 51\\\\\n",
"\t FALSE & FALSE & 1937 & 24\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 6 × 4\n",
"\n",
"| Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income? &lt;lgl&gt; | Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent &lt;lgl&gt; | Share of the tract's land area that is covered by impervious surface or cropland as a percent &lt;dbl&gt; | Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile) &lt;dbl&gt; |\n",
"|---|---|---|---|\n",
"| FALSE | FALSE | 760 | 10 |\n",
"| FALSE | FALSE | 2058 | 26 |\n",
"| FALSE | FALSE | 2353 | 29 |\n",
"| FALSE | FALSE | 2333 | 29 |\n",
"| FALSE | FALSE | 3955 | 51 |\n",
"| FALSE | FALSE | 1937 | 24 |\n",
"\n"
],
"text/plain": [
" Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?\n",
"1 FALSE \n",
"2 FALSE \n",
"3 FALSE \n",
"4 FALSE \n",
"5 FALSE \n",
"6 FALSE \n",
" Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent\n",
"1 FALSE \n",
"2 FALSE \n",
"3 FALSE \n",
"4 FALSE \n",
"5 FALSE \n",
"6 FALSE \n",
" Share of the tract's land area that is covered by impervious surface or cropland as a percent\n",
"1 760 \n",
"2 2058 \n",
"3 2353 \n",
"4 2333 \n",
"5 3955 \n",
"6 1937 \n",
" Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)\n",
"1 10 \n",
"2 26 \n",
"3 29 \n",
"4 29 \n",
"5 51 \n",
"6 24 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"score_post_cols = colnames(score_post)\n",
"score_post_impervious_cols = score_post_cols[grepl(\"impervious\", score_post_cols)]\n",
"score_post_impervious = score_post[,score_post_impervious_cols]\n",
"head(score_post_impervious)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "c62ea209",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"1595"
],
"text/latex": [
"1595"
],
"text/markdown": [
"1595"
],
"text/plain": [
"[1] 1595"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"1595"
],
"text/latex": [
"1595"
],
"text/markdown": [
"1595"
],
"text/plain": [
"[1] 1595"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"7258"
],
"text/latex": [
"7258"
],
"text/markdown": [
"7258"
],
"text/plain": [
"[1] 7258"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# check base score. That still came through\n",
"sum(is.na(score_post_impervious[,3]))\n",
"nrow(score_post_impervious) - length(impervious_in) \n",
"sum(score_post_impervious[,3] >= quantile(score_post_impervious[,3], .9, na.rm = TRUE), na.rm = TRUE) ## calculate the number at or above 90th percentile"
]
},
{
"cell_type": "markdown",
"id": "89be6c95",
"metadata": {},
"source": [
"I think there is likely just a rounding error that made that 7258 instead of 7254"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "2a905ca6",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sum(score_post_impervious[, 4] >= 90, na.rm = TRUE)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "7a1116b0",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sum(score_post_impervious[,2] == TRUE)"
]
},
{
"cell_type": "markdown",
"id": "f6cd3ce5",
"metadata": {},
"source": [
"Take a look at the tiles themselves. "
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "256b3cf6",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"\u001b[36m──\u001b[39m \u001b[1m\u001b[1mColumn specification\u001b[1m\u001b[22m \u001b[36m────────────────────────────────────────────────────────\u001b[39m\n",
"cols(\n",
" .default = col_logical(),\n",
" GTF = \u001b[31mcol_character()\u001b[39m,\n",
" SF = \u001b[31mcol_character()\u001b[39m,\n",
" CF = \u001b[31mcol_character()\u001b[39m,\n",
" DF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" AF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" HDF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" DSF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" EBF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" EALR_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" EBLR_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" EPLR_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" HBF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" LLEF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" LIF_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" LMI_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" PM25F_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" HSEF = \u001b[32mcol_double()\u001b[39m,\n",
" P100_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" P200_I_PFS = \u001b[32mcol_double()\u001b[39m,\n",
" LPF_PFS = \u001b[32mcol_double()\u001b[39m\n",
" # ... with 30 more columns\n",
")\n",
"\u001b[36m\u001b[39m Use \u001b[30m\u001b[47m\u001b[30m\u001b[47m`spec()`\u001b[47m\u001b[30m\u001b[49m\u001b[39m for the full column specifications.\n",
"\n",
"\n",
"Warning message:\n",
"“513 parsing failures.\n",
" row col expected actual file\n",
"1182 TA_COUNT_AK 1/0/T/F/TRUE/FALSE 1.0 '../data/score/csv/tiles/usa.csv'\n",
"1183 TA_COUNT_AK 1/0/T/F/TRUE/FALSE 4.0 '../data/score/csv/tiles/usa.csv'\n",
"1184 TA_COUNT_AK 1/0/T/F/TRUE/FALSE 3.0 '../data/score/csv/tiles/usa.csv'\n",
"1187 TA_COUNT_AK 1/0/T/F/TRUE/FALSE 7.0 '../data/score/csv/tiles/usa.csv'\n",
"1189 TA_COUNT_AK 1/0/T/F/TRUE/FALSE 3.0 '../data/score/csv/tiles/usa.csv'\n",
".... ........... .................. ...... .................................\n",
"See problems(...) for more details.\n",
"”\n"
]
}
],
"source": [
"score_tiles_path = list.files(\"../data/score/csv/tiles\", pattern = \".csv\", full.names = TRUE)\n",
"score_tiles = read_csv(score_tiles_path)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "097afdae",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 1 × 2</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>IS_PFS</th><th scope=col>IS_ET</th></tr>\n",
"\t<tr><th scope=col>&lt;int&gt;</th><th scope=col>&lt;int&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>7254</td><td>7254</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 1 × 2\n",
"\\begin{tabular}{ll}\n",
" IS\\_PFS & IS\\_ET\\\\\n",
" <int> & <int>\\\\\n",
"\\hline\n",
"\t 7254 & 7254\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 1 × 2\n",
"\n",
"| IS_PFS &lt;int&gt; | IS_ET &lt;int&gt; |\n",
"|---|---|\n",
"| 7254 | 7254 |\n",
"\n"
],
"text/plain": [
" IS_PFS IS_ET\n",
"1 7254 7254 "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"score_tiles %>% select(IS_PFS, IS_ET) %>%\n",
"summarise(\n",
" IS_PFS = sum(IS_PFS >=.9, na.rm = TRUE) \n",
" , IS_ET = sum(IS_ET) # okay, this came through correctly this time. \n",
")"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "bb3a53e0",
"metadata": {},
"outputs": [],
"source": [
"score_mapping_path = list.files(\"../data/score/csv/tiles\", pattern = \"json\", full.names = TRUE)\n",
" score_mapping = fromJSON(file = score_mapping_path)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "716ecfad",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 2 × 2</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>abbrev</th><th scope=col>names</th></tr>\n",
"\t<tr><th scope=col>&lt;chr&gt;</th><th scope=col>&lt;named list&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>IS_PFS</td><td>Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)</td></tr>\n",
"\t<tr><td>IS_ET </td><td>Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 2 × 2\n",
"\\begin{tabular}{ll}\n",
" abbrev & names\\\\\n",
" <chr> & <named list>\\\\\n",
"\\hline\n",
"\t IS\\_PFS & Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile)\\\\\n",
"\t IS\\_ET & Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 2 × 2\n",
"\n",
"| abbrev &lt;chr&gt; | names &lt;named list&gt; |\n",
"|---|---|\n",
"| IS_PFS | Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile) |\n",
"| IS_ET | Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent |\n",
"\n"
],
"text/plain": [
" abbrev\n",
"1 IS_PFS\n",
"2 IS_ET \n",
" names \n",
"1 Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile) \n",
"2 Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"tibble(\n",
" abbrev = names(score_mapping)\n",
" , names = flatten(score_mapping )\n",
" ) %>%\n",
"filter(grepl(\"impervious\", names))"
]
},
{
"cell_type": "markdown",
"id": "289a9e93",
"metadata": {},
"source": [
"Next, we have the Json with the shape files. And the problem propogates into the .json files. "
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "c81c867e",
"metadata": {},
"outputs": [],
"source": [
"high_res_json_path = list.files(\"../data/score/geojson\", pattern = \"high\", full.names = TRUE)\n",
"high_res_json <- fromJSON(file = high_res_json_path)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "142c8a38",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"List of 3\n",
" $ type : chr \"FeatureCollection\"\n",
" $ crs :List of 2\n",
" ..$ type : chr \"name\"\n",
" ..$ properties:List of 1\n",
" .. ..$ name: chr \"urn:ogc:def:crs:OGC:1.3:CRS84\"\n",
" $ features:List of 74134\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" ..$ :List of 3\n",
" .. ..$ type : chr \"Feature\"\n",
" .. ..$ properties:List of 123\n",
" .. ..$ geometry :List of 2\n",
" .. [list output truncated]\n"
]
}
],
"source": [
"glimpse(high_res_json)"
]
},
{
"cell_type": "markdown",
"id": "ae309c2c",
"metadata": {},
"source": [
"We want IS_PFS and IS_ET"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "dbf131fa",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"'FeatureCollection'"
],
"text/latex": [
"'FeatureCollection'"
],
"text/markdown": [
"'FeatureCollection'"
],
"text/plain": [
"[1] \"FeatureCollection\""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"0.26"
],
"text/latex": [
"0.26"
],
"text/markdown": [
"0.26"
],
"text/plain": [
"[1] 0.26"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"FALSE"
],
"text/latex": [
"FALSE"
],
"text/markdown": [
"FALSE"
],
"text/plain": [
"[1] FALSE"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"high_res_json$type\n",
"high_res_json$features[[1]]$properties$IS_PFS\n",
"high_res_json$features[[1]]$properties$IS_ET"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "56e93d0e",
"metadata": {},
"outputs": [],
"source": [
"impervious_json = map(\n",
" # 1:10, \n",
" 1:length(high_res_json$features), \n",
" ~ tibble(\n",
" GEOID = high_res_json$features[[.x]]$properties$GEOID\n",
" , IS_PFS = as.numeric(high_res_json$features[[.x]]$properties$IS_PFS)\n",
" , IS_ET = high_res_json$features[[.x]]$properties$IS_ET\n",
" )\n",
" ) "
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "961e6d31",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 6 × 3</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>GEOID</th><th scope=col>IS_PFS</th><th scope=col>IS_ET</th></tr>\n",
"\t<tr><th scope=col>&lt;chr&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;lgl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>01073001100</td><td>0.26</td><td>FALSE</td></tr>\n",
"\t<tr><td>01073001400</td><td>0.55</td><td>FALSE</td></tr>\n",
"\t<tr><td>01073002000</td><td>0.23</td><td>FALSE</td></tr>\n",
"\t<tr><td>01073003802</td><td>0.49</td><td>FALSE</td></tr>\n",
"\t<tr><td>01073004000</td><td>0.68</td><td>FALSE</td></tr>\n",
"\t<tr><td>01073005101</td><td>0.72</td><td>FALSE</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 6 × 3\n",
"\\begin{tabular}{lll}\n",
" GEOID & IS\\_PFS & IS\\_ET\\\\\n",
" <chr> & <dbl> & <lgl>\\\\\n",
"\\hline\n",
"\t 01073001100 & 0.26 & FALSE\\\\\n",
"\t 01073001400 & 0.55 & FALSE\\\\\n",
"\t 01073002000 & 0.23 & FALSE\\\\\n",
"\t 01073003802 & 0.49 & FALSE\\\\\n",
"\t 01073004000 & 0.68 & FALSE\\\\\n",
"\t 01073005101 & 0.72 & FALSE\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 6 × 3\n",
"\n",
"| GEOID &lt;chr&gt; | IS_PFS &lt;dbl&gt; | IS_ET &lt;lgl&gt; |\n",
"|---|---|---|\n",
"| 01073001100 | 0.26 | FALSE |\n",
"| 01073001400 | 0.55 | FALSE |\n",
"| 01073002000 | 0.23 | FALSE |\n",
"| 01073003802 | 0.49 | FALSE |\n",
"| 01073004000 | 0.68 | FALSE |\n",
"| 01073005101 | 0.72 | FALSE |\n",
"\n"
],
"text/plain": [
" GEOID IS_PFS IS_ET\n",
"1 01073001100 0.26 FALSE\n",
"2 01073001400 0.55 FALSE\n",
"3 01073002000 0.23 FALSE\n",
"4 01073003802 0.49 FALSE\n",
"5 01073004000 0.68 FALSE\n",
"6 01073005101 0.72 FALSE"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"impervious_json_df <- bind_rows(impervious_json)\n",
"head(impervious_json_df)"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "1aa32ec9",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"7254"
],
"text/latex": [
"7254"
],
"text/markdown": [
"7254"
],
"text/plain": [
"[1] 7254"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"sum(impervious_json_df$IS_PFS >= .9)\n",
"sum(impervious_json_df$IS_ET)\n"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "190aa389",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 0 × 3</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>GEOID</th><th scope=col>IS_PFS</th><th scope=col>IS_ET</th></tr>\n",
"\t<tr><th scope=col>&lt;chr&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;lgl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 0 × 3\n",
"\\begin{tabular}{lll}\n",
" GEOID & IS\\_PFS & IS\\_ET\\\\\n",
" <chr> & <dbl> & <lgl>\\\\\n",
"\\hline\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 0 × 3\n",
"\n",
"| GEOID &lt;chr&gt; | IS_PFS &lt;dbl&gt; | IS_ET &lt;lgl&gt; |\n",
"|---|---|---|\n",
"\n"
],
"text/plain": [
" GEOID IS_PFS IS_ET"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"impervious_json_df %>% filter(IS_PFS >= .9, IS_ET == FALSE) %>% head() # This is correct!"
]
},
{
"cell_type": "markdown",
"id": "f08da689",
"metadata": {},
"source": [
" okay, how did we get that the IS_ET is false when IS_PFS >= .9?. This is now fixed\n"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "b4fc9575",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<table class=\"dataframe\">\n",
"<caption>A tibble: 1 × 3</caption>\n",
"<thead>\n",
"\t<tr><th scope=col>GEOID</th><th scope=col>IS_PFS</th><th scope=col>IS_ET</th></tr>\n",
"\t<tr><th scope=col>&lt;chr&gt;</th><th scope=col>&lt;dbl&gt;</th><th scope=col>&lt;lgl&gt;</th></tr>\n",
"</thead>\n",
"<tbody>\n",
"\t<tr><td>11001004701</td><td>0.95</td><td>TRUE</td></tr>\n",
"</tbody>\n",
"</table>\n"
],
"text/latex": [
"A tibble: 1 × 3\n",
"\\begin{tabular}{lll}\n",
" GEOID & IS\\_PFS & IS\\_ET\\\\\n",
" <chr> & <dbl> & <lgl>\\\\\n",
"\\hline\n",
"\t 11001004701 & 0.95 & TRUE\\\\\n",
"\\end{tabular}\n"
],
"text/markdown": [
"\n",
"A tibble: 1 × 3\n",
"\n",
"| GEOID &lt;chr&gt; | IS_PFS &lt;dbl&gt; | IS_ET &lt;lgl&gt; |\n",
"|---|---|---|\n",
"| 11001004701 | 0.95 | TRUE |\n",
"\n"
],
"text/plain": [
" GEOID IS_PFS IS_ET\n",
"1 11001004701 0.95 TRUE "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"impervious_json_df %>% filter(GEOID == \"11001004701\")"
]
},
{
"cell_type": "code",
"execution_count": 45,
"id": "23c08b31",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Linking to GEOS 3.8.1, GDAL 3.1.4, PROJ 6.3.1\n",
"\n"
]
}
],
"source": [
"library(osmextract)\n",
"library(sf)"
]
},
{
"cell_type": "code",
"execution_count": 54,
"id": "42ba5744",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"'../data/score/tiles/low/0/0/0.gpkg'"
],
"text/latex": [
"'../data/score/tiles/low/0/0/0.gpkg'"
],
"text/markdown": [
"'../data/score/tiles/low/0/0/0.gpkg'"
],
"text/plain": [
"[1] \"../data/score/tiles/low/0/0/0.gpkg\""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"tile_path = list.files(\"../data/score/tiles/low/0/0\", full.names = TRUE)[1]\n",
"tile_path"
]
},
{
"cell_type": "code",
"execution_count": 56,
"id": "ec4be11d",
"metadata": {},
"outputs": [
{
"ename": "ERROR",
"evalue": "Error: Cannot open \"/Users/samuelpowers/Documents/USDS/justice40-tool/data/data-pipeline/data_pipeline/data/score/tiles/low/0/0/0.gpkg\"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.\n",
"output_type": "error",
"traceback": [
"Error: Cannot open \"/Users/samuelpowers/Documents/USDS/justice40-tool/data/data-pipeline/data_pipeline/data/score/tiles/low/0/0/0.gpkg\"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.\nTraceback:\n",
"1. oe_read(tile_path)",
"2. sf::st_read(dsn = file_path, layer = layer, quiet = quiet, ...)",
"3. st_read.character(dsn = file_path, layer = layer, quiet = quiet, \n . ...)",
"4. CPL_read_ogr(dsn, layer, query, as.character(options), quiet, \n . type, fid_column_name, drivers, wkt_filter, promote_to_multi, \n . int64_as_string, dsn_exists, dsn_isdb)"
]
}
],
"source": [
"tile_read = oe_read(tile_path)"
]
},
{
"cell_type": "code",
"execution_count": 44,
"id": "a81e1b1e",
"metadata": {},
"outputs": [
{
"ename": "ERROR",
"evalue": "Error in eval(expr, envir, enclos): object 'tile_read' not found\n",
"output_type": "error",
"traceback": [
"Error in eval(expr, envir, enclos): object 'tile_read' not found\nTraceback:\n"
]
}
],
"source": [
"tile_read"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "R",
"language": "R",
"name": "ir"
},
"language_info": {
"codemirror_mode": "r",
"file_extension": ".r",
"mimetype": "text/x-r-source",
"name": "R",
"pygments_lexer": "r",
"version": "4.0.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}