Skip to content

Commit

Permalink
run cc export work
Browse files Browse the repository at this point in the history
test update push for dashboard
  • Loading branch information
sean-connelly-cmap committed Aug 16, 2024
1 parent cbe1d88 commit 4f9ccd2
Show file tree
Hide file tree
Showing 13 changed files with 119 additions and 102 deletions.
22 changes: 12 additions & 10 deletions 01_scripts/append_non_tidycensus_acs.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ gini_appended <- append_non_tidycensus(gini, gini_tc)
commute_time_re_appended <- append_non_tidycensus(commute_time_re, commute_time_re_tc)

# 4. Export data ----------------------------------------------------------
# write_csv(med_hh_inc_re_appended, here("household-income-race-ethnicity", "household-income-race-ethnicity.csv"))
# write_csv(hh_inc_quintiles_appended, here("mean-household-income", "mean-household-income.csv"))
# write_csv(nonsov_travel_appended, here("non-single-occupancy-modes", "non-single-occupancy-modes.csv"))
# write_csv(workforce_participation_appended, here("workforce-participation", "workforce-participation.csv"))
# write_csv(workforce_participation_re_appended, here("workforce-participation", "workforce-participation-race-ethnicity.csv"))
# write_csv(unemployment_re_appended, here("unemployment-race-ethnicity", "unemployment-race-ethnicity.csv"))
# write_csv(educational_attainment_appended, here("educational-attainment", "educational-attainment.csv"))
# write_csv(educational_attainment_re_appended, here("educational-attainment", "educational-attainment-race-ethnicity.csv"))
# write_csv(gini_appended, here("income-inequality", "income-inequality.csv"))
# write_csv(commute_time_re_appended, here("commute-time-race-ethnicity", "commute-time-race-ethnicity.csv"))

# Overwrite subfolder dashboard data with appended, final dfs
write_csv(med_hh_inc_re_appended, here("household-income-race-ethnicity", "household-income-race-ethnicity.csv"))
write_csv(hh_inc_quintiles_appended, here("mean-household-income", "mean-household-income.csv"))
write_csv(nonsov_travel_appended, here("non-single-occupancy-modes", "non-single-occupancy-modes.csv"))
write_csv(workforce_participation_appended, here("workforce-participation", "workforce-participation.csv"))
write_csv(workforce_participation_re_appended, here("workforce-participation", "workforce-participation-race-ethnicity.csv"))
write_csv(unemployment_re_appended, here("unemployment-race-ethnicity", "unemployment-race-ethnicity.csv"))
write_csv(educational_attainment_appended, here("educational-attainment", "educational-attainment.csv"))
write_csv(educational_attainment_re_appended, here("educational-attainment", "educational-attainment-race-ethnicity.csv"))
write_csv(gini_appended, here("income-inequality", "income-inequality.csv"))
write_csv(commute_time_re_appended, here("commute-time-race-ethnicity", "commute-time-race-ethnicity.csv"))
22 changes: 12 additions & 10 deletions commute-time-race-ethnicity/commute-time-race-ethnicity.csv
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
YEAR,COMMUTE_MINS_ASIAN,COMMUTE_MINS_BLACK,COMMUTE_MINS_HISPANIC,COMMUTE_MINS_WHITE,ACTUAL_OR_TARGET
2005,30.3,36.7,28.4,29.1,Actual
2006,30.9,34.6,29.5,28.4,Actual
2007,30.7,35.0,29.1,28.8,Actual
2008,31.4,35.0,29.2,29.2,Actual
2007,30.7,35,29.1,28.8,Actual
2008,31.4,35,29.2,29.2,Actual
2009,30.5,34.6,28.6,28.7,Actual
2010,30.3,33.1,28.8,28.6,Actual
2011,30.5,33.7,28.6,28.8,Actual
2012,30.7,33.2,29.2,28.3,Actual
2013,30.8,34.0,29.1,29.1,Actual
2014,30.6,33.8,29.6,29.5,Actual
2015,31.6,34.5,29.3,29.4,Actual
2016,30.5,34.3,30.2,29.4,Actual
2017,31.8,34.2,29.6,29.5,Actual
2018,30.5,35.7,29.6,29.8,Actual
2019,32.0,34.7,30.4,29.5,Actual
2012,30.69211992899133,33.18925080393832,29.218311819555627,28.333488936006823,Actual
2013,30.839024866871856,33.98096180190956,29.067552288140423,29.1245950243868,Actual
2014,30.649282751469062,33.76908087811689,29.644921505600355,29.48494741632785,Actual
2015,31.589795579083937,34.50554571659095,29.286208791441943,29.443586007212033,Actual
2016,30.506005597450052,34.28675988621592,30.17824423985421,29.423703955185875,Actual
2017,31.844619066394035,34.23883634195578,29.61261904737748,29.47066814677073,Actual
2018,30.497263521423555,35.74146919841721,29.640588941245092,29.82374713871538,Actual
2019,32.00787997829814,34.71296757952178,30.359622019621828,29.51398952183527,Actual
2020,23.4,28.7,26.1,22.6,Actual
2021,21.12191484881786,27.43069907564494,25.47451433249039,20.87499898303706,Actual
2022,27.06728732133799,24.135610093927195,23.838443592734546,23.38550725897781,Actual
20 changes: 10 additions & 10 deletions educational-attainment/educational-attainment-race-ethnicity.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ YEAR,PCT_ASSOC_DEG_PLUS_ALL,PCT_ASSOC_DEG_PLUS_ASIAN,PCT_ASSOC_DEG_PLUS_BLACK,PC
2009,40.1,67.1,26,16.6,47.7,Actual
2010,40.5,68.4,26.6,17,47.8,Actual
2011,40.9,65.7,27.6,16.9,48.7,Actual
2012,41.7,68.3,27.7,17.9,49.3,Actual
2013,42.1,69.2,29,17.5,49.9,Actual
2014,43.2,68.8,30,18.4,51.2,Actual
2015,43.3,68.9,29.5,19,51.5,Actual
2016,44.3,70.4,30.4,20.3,52.4,Actual
2017,44.8,70.1,30.6,20.1,53.4,Actual
2018,45.7,71.3,30.8,20.6,54.7,Actual
2019,46.6,70.4,32.2,23.3,55,Actual
2012,41.674472567573,68.32268325746803,27.6859933345402,17.939299519285154,49.32022414209361,Actual
2013,42.121055886835265,69.15385015905446,28.97122613081266,17.464249928395954,49.86660472807395,Actual
2014,43.15534511890612,68.79265499254494,30.00453744467545,18.3938427297747,51.154836529598334,Actual
2015,43.27265395148438,68.92136667548937,29.474533250716775,18.999060041061817,51.466896363468315,Actual
2016,44.34749229948226,70.38662658659783,30.355049003521593,20.258192821544103,52.438750390088394,Actual
2017,44.786908515838704,70.13317843515892,30.573581167594416,20.121172671056257,53.36792741167806,Actual
2018,45.74000423519272,71.27157310907802,30.77610667206752,20.573470998202932,54.66985256119269,Actual
2019,46.55747293357603,70.40990902835209,32.20793435236956,23.278243121780477,55.03432883832148,Actual
2020,49.2,73,34.9,25.8,57.6,Actual
2021,48,71.4,34.7,24.6,56.6,Actual
2022,48.6,73.5,34.2,26.5,56.8,Actual
2021,47.97182522226683,71.40822334061343,34.68835997669096,24.639928314066957,56.56238581183876,Actual
2022,48.56103263952444,73.45712550736681,34.1929508985022,26.45594869403849,56.77266277223597,Actual
19 changes: 10 additions & 9 deletions educational-attainment/educational-attainment.csv
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
YEAR,PCT_ASSOC_DEG_PLUS,ACTUAL_OR_TARGET
2010,41.7,Actual
2011,42.19,Actual
2012,43.02,Actual
2013,43.43,Actual
2014,44.39,Actual
2015,44.52,Actual
2016,45.68,Actual
2017,46.11,Actual
2018,47.04,Actual
2019,48.01,Actual
2012,43.0216036009905,Actual
2013,43.43303457106274,Actual
2014,44.38721661892784,Actual
2015,44.51898942823025,Actual
2016,45.67668050939664,Actual
2017,46.11070340356564,Actual
2018,47.04096102643227,Actual
2019,48.0139938815617,Actual
2020,50.76,Actual
2021,48.44,Actual
2021,49.52815385138799,Actual
2022,49.930368049687054,Actual
2025,50.2,Target
2050,64.9,Target
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ YEAR,MED_HH_INC_ALL,MED_HH_INC_ASIAN,MED_HH_INC_BLACK,MED_HH_INC_HISPANIC,MED_HH
2009,65697,83343,38763,51854,76928,Actual
2010,62863,75925,38050,49860,75047,Actual
2011,61096,77031,37381,45704,73177,Actual
2012,61949,78844,35172,47965,74106,Actual
2013,62405,79496,35329,46727,74095,Actual
2014,62448,82083,35783,48843,75791,Actual
2015,63951,82360,35599,50323,77840,Actual
2012,61949,78844,35172,47965,74105,Actual
2013,62397,79486,35325,46721,74086,Actual
2014,62449,82085,35784,48844,75792,Actual
2015,63950,82358,35598,50322,77839,Actual
2016,66020,87469,37258,52730,79865,Actual
2017,66963,85390,38245,53270,80083,Actual
2018,67622,84090,39355,54191,81947,Actual
2019,70761,92353,39179,57004,84578,Actual
2017,66976,85407,38252,53281,80099,Actual
2018,67632,84102,39361,54199,81959,Actual
2019,70765,92358,39181,57007,84582,Actual
2020,71351,90823,42143,62899,83405,Actual
2021,69234,90321,39993,58681,82304,Actual
2022,67998,88255,39091,59964,79679,Actual
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ YEAR,PCT_INCOME_HT_ALL,PCT_INCOME_HT_HISPANIC,PCT_INCOME_HT_WHITE,PCT_INCOME_HT_
2020,60,45,64,63,Actual
,,,,,
,,,,,
,All Low- Mod-Income,Hispanic,Non-Hispanic (white),Non-Hispanic (black),
,60%,45%,64%,63%,
,,,,,
,,,,,
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ YEAR,PCT_INCOME_H,PCT_INCOME_T,PCT_INCOME_HT,ACTUAL_OR_TARGET
,,,,
,,,,
,,,,
% of Income spent on Housing,48%,,,
% of Income spent on Transportation,12%,,,
% of Income spent on Housing + Transportation,60%,,,
,,,,
,,,,
,,,,
14 changes: 8 additions & 6 deletions income-inequality/income-inequality.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ YEAR,GINI_COEFF_CHI,GINI_COEFF_BOS,GINI_COEFF_LA,GINI_COEFF_NY,GINI_COEFF_WAS,AC
2006,0.463,0.461,0.481,0.499,0.434,Actual
2007,0.466,0.468,0.487,0.504,0.436,Actual
2008,0.467,0.474,0.491,0.506,0.435,Actual
2009,0.469,0.470,0.479,0.504,0.435,Actual
2009,0.469,0.47,0.479,0.504,0.435,Actual
2010,0.467,0.473,0.483,0.501,0.434,Actual
2011,0.4754,0.4767,0.4940,0.5072,0.4381,Actual
2012,0.4761,0.4809,0.4911,0.5049,0.4390,Actual
2013,0.4860,0.4839,0.4989,0.5120,0.4420,Actual
2011,0.4754,0.4767,0.494,0.5072,0.4381,Actual
2012,0.4761,0.4809,0.4911,0.5049,0.439,Actual
2013,0.486,0.4839,0.4989,0.512,0.442,Actual
2014,0.4787,0.4859,0.4981,0.5112,0.4411,Actual
2015,0.4851,0.4813,0.4943,0.5163,0.4450,Actual
2016,0.4832,0.4753,0.4971,0.5130,0.4442,Actual
2015,0.4851,0.4813,0.4943,0.5163,0.445,Actual
2016,0.4832,0.4753,0.4971,0.513,0.4442,Actual
2017,0.4819,0.4812,0.4927,0.5136,0.4429,Actual
2018,0.4853,0.4856,0.4967,0.5124,0.4457,Actual
2019,0.4808,0.4781,0.4875,0.5118,0.4442,Actual
2021,0.4842,0.4846,0.494,0.5154,0.4533,Actual
2022,0.4831,0.4943,0.5,0.5184,0.4476,Actual
22 changes: 12 additions & 10 deletions mean-household-income/mean-household-income.csv
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
YEAR,MEAN_INC_REL2006_QUINT1,MEAN_INC_REL2006_QUINT2,MEAN_INC_REL2006_QUINT3,MEAN_INC_REL2006_QUINT4,MEAN_INC_REL2006_QUINT5,ACTUAL_OR_TARGET
2006,1.0000,1.0000,1.0000,1.0000,1.0000,Actual
2006,1,1,1,1,1,Actual
2007,1.0462,1.0112,1.0068,1.0099,1.0271,Actual
2008,0.9969,0.9955,1.0053,1.0155,1.0204,Actual
2009,0.9688,0.9537,0.9669,0.9823,0.9902,Actual
2010,0.9378,0.9027,0.9251,0.9518,0.9423,Actual
2011,0.8710,0.8660,0.9004,0.9311,0.9426,Actual
2012,0.8572,0.8736,0.9078,0.9404,0.9488,Actual
2013,0.8413,0.8732,0.9116,0.9460,0.9880,Actual
2014,0.8790,0.8942,0.9208,0.9588,0.9784,Actual
2015,0.9010,0.9041,0.9447,0.9899,1.0279,Actual
2016,0.8917,0.9263,0.9709,1.0099,1.0397,Actual
2017,0.9281,0.9525,0.9823,1.0179,1.0539,Actual
2018,0.9535,0.9579,0.9938,1.0365,1.0866,Actual
2019,0.9946,1.0045,1.0401,1.0744,1.1105,Actual
2011,0.871,0.866,0.9004,0.9311,0.9426,Actual
2012,0.8571552967270937,0.8734775489372549,0.9077615689987184,0.9403104884469596,0.9486610821230272,Actual
2013,0.8410706764431944,0.8730255714547008,0.911386329279296,0.9458152492452844,0.9877901768555984,Actual
2014,0.8789668119102017,0.894118735974777,0.9207439050916598,0.9586832723535,0.9782930028057576,Actual
2015,0.900887610992932,0.9039754429074646,0.9446280919221692,0.9897663578312804,1.0278221003181398,Actual
2016,0.8916652746588046,0.926221467602986,0.970802168571337,1.0098534078850587,1.039622107732707,Actual
2017,0.930338579729002,0.954783055242378,0.9846463843796118,1.0203218278697208,1.05645060505966,Actual
2018,0.9557769668039506,0.9600999521991972,0.99613235991129,1.038924260775995,1.089115071511946,Actual
2019,0.9947433533089012,1.0047177755159726,1.0402601147869868,1.0745768326894702,1.110677659557241,Actual
2020,1.1148,1.1524,1.1602,1.1866,1.1909,Actual
2021,0.9050920287908192,0.9883499761569744,1.0208561728847667,1.053941278141448,1.0954968249940225,Actual
2022,0.9020782600562448,0.9795736780962352,1.00310753535613,1.0283127869009443,1.075361723778714,Actual
23 changes: 12 additions & 11 deletions non-single-occupancy-modes/non-single-occupancy-modes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ YEAR,PCT_NONSOV_CARPOOL,PCT_NONSOV_TRANSIT,PCT_NONSOV_BIKE,PCT_NONSOV_WALK,PCT_N
2009,8.8,12.5,0.6,3.3,4.1,29.4,Actual
2010,8.7,12.3,0.7,3.2,4.7,29.5,Actual
2011,8.6,12.8,0.7,3.3,4.3,29.7,Actual
2012,8.8,12.1,0.7,3.4,4.5,29.5,Actual
2013,8.2,12.9,0.6,3.3,4.5,29.5,Actual
2014,7.8,13.1,0.7,3.3,4.7,29.6,Actual
2015,7.6,13.1,0.8,3.3,4.8,29.6,Actual
2016,7.6,13.1,0.8,3.2,5.3,29.9,Actual
2017,7.6,13.4,0.7,3.1,5.2,30.2,Actual
2018,8.2,13.3,0.7,2.9,5.6,30.8,Actual
2019,7.4,13.6,0.6,3.2,6,30.8,Actual
2012,8.754968865894996,12.124512197029755,0.7453109600426728,3.399620203785952,4.45273969526476,29.477151922018137,Actual
2013,8.168361675124057,12.865833130028676,0.6264607720028179,3.29889323353089,4.542120945629565,29.501669756316005,Actual
2014,7.794731469870454,13.0622057620727,0.704317171573814,3.3130948139479552,4.706259912286927,29.58060912975185,Actual
2015,7.624106378524606,13.129452643125587,0.7549223015366493,3.296954136790339,4.837217831992007,29.64265329196919,Actual
2016,7.571036363745592,13.062712892819167,0.784418798848952,3.226346744204209,5.2866265762329006,29.93114137585082,Actual
2017,7.639341716197247,13.435178160747888,0.7446611511006243,3.089513455392611,5.247824139063947,30.156518622502315,Actual
2018,8.214494588732299,13.300546804910455,0.7268965934943654,2.9174284838229783,5.616579791120146,30.775946262080247,Actual
2019,7.448035004521771,13.5921492149097,0.6447208469566181,3.2127567004158615,5.950627211511592,30.84828897831554,Actual
2020,6.8,8.8,0.6,2.4,19.8,38.4,Actual
2021,7.59,11.01,0.65,2.93,11.49,33.68,Actual
2025,,,,,,32.4,Target
2050,,,,,,37.3,Target
2021,7.438558026382647,5.303996621975164,0.6248175054281844,2.7876998719580275,22.792227322922635,38.94729934866666,Actual
2022,7.954511276782123,7.744728165450451,0.6470897292745189,2.7491738380158575,18.314032723157723,37.40953573268067,Actual
2025,NA,NA,NA,NA,NA,32.4,Target
2050,NA,NA,NA,NA,NA,37.3,Target
18 changes: 10 additions & 8 deletions unemployment-race-ethnicity/unemployment-race-ethnicity.csv
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
YEAR,PCT_UNEMPLOYED_ALL,PCT_UNEMPLOYED_BLACK,PCT_UNEMPLOYED_ASIAN,PCT_UNEMPLOYED_HISPANIC,PCT_UNEMPLOYED_WHITE,ACTUAL_OR_TARGET
2005,8.0,17.6,5.9,9.3,5.2,Actual
2006,7.5,16.5,5.8,8.0,5.2,Actual
2007,7.2,15.6,4.5,7.8,5.0,Actual
2005,8,17.6,5.9,9.3,5.2,Actual
2006,7.5,16.5,5.8,8,5.2,Actual
2007,7.2,15.6,4.5,7.8,5,Actual
2008,7.1,14.7,5.1,7.3,5.2,Actual
2009,11.3,20.4,8.1,12.5,8.8,Actual
2010,12.2,22.3,8.2,13.2,9.6,Actual
2011,11.7,21.9,7.6,13.2,9.0,Actual
2012,10.8,22.9,6.6,12.0,7.6,Actual
2011,11.7,21.9,7.6,13.2,9,Actual
2012,10.8,22.9,6.6,12,7.6,Actual
2013,9.8,21.4,6.5,10.6,6.8,Actual
2014,8.4,18.5,6.4,8.6,5.8,Actual
2015,7.1,16.1,5.7,7.6,4.7,Actual
2016,6.3,14.3,4.8,6.8,4.1,Actual
2017,6.2,15.1,3.8,6.0,4.1,Actual
2017,6.2,15.1,3.8,6,4.1,Actual
2018,5.7,12.9,3.6,6.3,3.6,Actual
2019,4.9,10.2,3.1,5.0,3.7,Actual
2020,7.9,15.6,6.4,7.7,6.0,Actual
2019,4.9,10.2,3.1,5,3.7,Actual
2020,7.9,15.6,6.4,7.7,6,Actual
2021,7.6,16.6,5.4,7.1,5.7,Actual
2022,4.9,10.8,3,5.4,3.3,Actual
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
YEAR,WORKFORCE_PARTIC_RATE_ALL,WORKFORCE_PARTIC_RATE_BLACK,WORKFORCE_PARTIC_RATE_ASIAN,WORKFORCE_PARTIC_RATE_HISPANIC,WORKFORCE_PARTIC_RATE_WHITE,ACTUAL_OR_TARGET
2005,68.1,63.3,68.4,71.0,68.6,Actual
2006,67.6,61.0,68.7,71.1,68.5,Actual
2005,68.1,63.3,68.4,71,68.6,Actual
2006,67.6,61,68.7,71.1,68.5,Actual
2007,67.6,61.5,68.1,71.8,68.1,Actual
2008,69.0,62.9,70.8,73.2,69.5,Actual
2008,69,62.9,70.8,73.2,69.5,Actual
2009,68.5,61.5,70.2,72.4,69.2,Actual
2010,67.6,60.0,68.8,70.9,68.7,Actual
2010,67.6,60,68.8,70.9,68.7,Actual
2011,67.4,59.7,68.3,71.7,68.1,Actual
2012,67.6,61.5,66.8,71.2,68.3,Actual
2013,67.4,60.3,67.3,70.8,68.3,Actual
2014,66.9,60.5,67.4,70.0,67.7,Actual
2014,66.9,60.5,67.4,70,67.7,Actual
2015,66.6,59.9,66.7,70.6,67.3,Actual
2016,66.9,61.3,66.0,70.9,67.3,Actual
2017,66.6,61.6,67.0,70.7,66.4,Actual
2016,66.9,61.3,66,70.9,67.3,Actual
2017,66.6,61.6,67,70.7,66.4,Actual
2018,67.1,61.9,67.3,71.2,66.9,Actual
2019,66.8,61.3,67.1,71.2,66.7,Actual
2020,66.4,60.2,67.1,70.8,66.3,Actual
2021,66.3,60.4,67.5,70.3,66.1,Actual
2022,66.7,61.9,67.7,71.2,66,Actual
19 changes: 10 additions & 9 deletions workforce-participation/workforce-participation.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ YEAR,WORKFORCE_PARTIC_RATE,ACTUAL_OR_TARGET
2009,80.68,Actual
2010,80.44,Actual
2011,80.09,Actual
2012,80.64,Actual
2013,80.3,Actual
2014,79.94,Actual
2015,79.85,Actual
2016,80.48,Actual
2017,80.46,Actual
2018,81.38,Actual
2019,81.13,Actual
2012,80.63218001121719,Actual
2013,80.2933830307105,Actual
2014,79.94830329280214,Actual
2015,79.83687702039866,Actual
2016,80.48121421734645,Actual
2017,80.46298593101079,Actual
2018,81.37554814366906,Actual
2019,81.13274970523648,Actual
2020,81.1,Actual
2021,81.19,Actual
2021,81.09326728662732,Actual
2022,82.1387113438611,Actual
2025,80.9,Target
2050,83.4,Target

0 comments on commit 4f9ccd2

Please sign in to comment.