Skip to content

Commit

Permalink
Fixed typo in filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsozz committed Dec 7, 2023
1 parent a0176c2 commit eb74043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion population/mid_year_2022/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ datatable(df,

|File name |Format |
|---|---|
|[mid-year_2022_population_estimates_local_authority.csv](mid-year_population_estimates_local_authority.csv) |CSV |
|[mid-year_2022_population_estimates_local_authority.csv](mid-year_2022_population_estimates_local_authority.csv) |CSV |

<h2>Pre-processing</h2>
[The R script used to process the data](pre-processing.R) can be adapted to other areas. For information about R visit the <a href="https://cran.r-project.org" target="_blank">CRAN website</a>.
Expand Down
12 changes: 5 additions & 7 deletions population/mid_year_2022/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1638,9 +1638,7 @@
$input.parent().hide(); $x.show().trigger('show'); filter[0].selectize.focus();
},
input: function() {
var v1 = JSON.stringify(filter[0].selectize.getValue()), v2 = $input.val();
if (v1 === '[]') v1 = '';
if (v1 !== v2) filter[0].selectize.setValue(v2 === '' ? [] : JSON.parse(v2));
if ($input.val() === '') filter[0].selectize.setValue([]);
}
});
var $input2 = $x.children('select');
Expand Down Expand Up @@ -2545,7 +2543,7 @@
console.log('The search keyword for column ' + i + ' is undefined')
return;
}
$(td).find('input').first().val(v).trigger('input');
$(td).find('input').first().val(v);
searchColumn(i, v);
});
table.draw();
Expand Down Expand Up @@ -3269,8 +3267,8 @@ <h2>
Preview
</h2>
<p>Sort, filter and export a selection of the data using the table.</p>
<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-e8aaddf2183cddad466d" style="width:100%;height:auto;"></div>
<script type="application/json" data-for="htmlwidget-e8aaddf2183cddad466d">{"x":{"filter":"none","vertical":false,"extensions":["Scroller","Buttons","KeyTable"],"data":[["2022-06-30","2022-06-30","2022-06-30"],["E08000009","E08000009","E08000009"],["Trafford","Trafford","Trafford"],["Local authority","Local authority","Local authority"],["Persons","Females","Males"],[236301,121052,115249],[49323,24013,25310],[145158,74021,71137],[41820,23018,18802],[2283,1115,1168],[2426,1146,1280],[2507,1197,1310],[2888,1446,1442],[2872,1394,1478],[3049,1533,1516],[3242,1605,1637],[3110,1509,1601],[3365,1627,1738],[3282,1572,1710],[3517,1684,1833],[3684,1806,1878],[3307,1597,1710],[3343,1618,1725],[3298,1629,1669],[3150,1535,1615],[3030,1488,1542],[2981,1453,1528],[2726,1325,1401],[1728,779,949],[1804,864,940],[1713,838,875],[2192,1114,1078],[2486,1231,1255],[2443,1200,1243],[2547,1225,1322],[2375,1268,1107],[2431,1186,1245],[2451,1191,1260],[2563,1267,1296],[2753,1374,1379],[2849,1529,1320],[2884,1533,1351],[3087,1663,1424],[3086,1622,1464],[3163,1720,1443],[3439,1783,1656],[3509,1840,1669],[3564,1891,1673],[3497,1821,1676],[3526,1878,1648],[3801,1987,1814],[3632,1878,1754],[3598,1889,1709],[3377,1751,1626],[3195,1635,1560],[3176,1660,1516],[3276,1617,1659],[3156,1600,1556],[3211,1626,1585],[3442,1759,1683],[3401,1725,1676],[3372,1728,1644],[3225,1599,1626],[3211,1612,1599],[3183,1627,1556],[3205,1649,1556],[3210,1599,1611],[3212,1649,1563],[3075,1565,1510],[2879,1449,1430],[2764,1448,1316],[2671,1339,1332],[2581,1298,1283],[2478,1249,1229],[2355,1184,1171],[2261,1108,1153],[2187,1138,1049],[2102,1067,1035],[2009,1065,944],[1998,1041,957],[2030,1066,964],[2050,1115,935],[2018,1049,969],[2166,1129,1037],[2192,1183,1009],[1631,907,724],[1667,944,723],[1663,944,719],[1538,875,663],[1240,699,541],[1169,674,495],[1183,715,468],[1225,696,529],[1079,616,463],[989,586,403],[902,536,366],[757,445,312],[660,399,261],[615,373,242],[2134,1464,670]],"container":"<table class=\"cell-border stripe\">\n <thead>\n <tr>\n <th>Period<\/th>\n <th>Area Code<\/th>\n <th>Area Name<\/th>\n <th>Geography<\/th>\n <th>Sex<\/th>\n <th>All Ages<\/th>\n <th>Aged 0 To 15<\/th>\n <th>Aged 16 To 64<\/th>\n <th>Aged 65 And Over<\/th>\n <th>0<\/th>\n <th>1<\/th>\n <th>2<\/th>\n <th>3<\/th>\n <th>4<\/th>\n <th>5<\/th>\n <th>6<\/th>\n <th>7<\/th>\n <th>8<\/th>\n <th>9<\/th>\n <th>10<\/th>\n <th>11<\/th>\n <th>12<\/th>\n <th>13<\/th>\n <th>14<\/th>\n <th>15<\/th>\n <th>16<\/th>\n <th>17<\/th>\n <th>18<\/th>\n <th>19<\/th>\n <th>20<\/th>\n <th>21<\/th>\n <th>22<\/th>\n <th>23<\/th>\n <th>24<\/th>\n <th>25<\/th>\n <th>26<\/th>\n <th>27<\/th>\n <th>28<\/th>\n <th>29<\/th>\n <th>30<\/th>\n <th>31<\/th>\n <th>32<\/th>\n <th>33<\/th>\n <th>34<\/th>\n <th>35<\/th>\n <th>36<\/th>\n <th>37<\/th>\n <th>38<\/th>\n <th>39<\/th>\n <th>40<\/th>\n <th>41<\/th>\n <th>42<\/th>\n <th>43<\/th>\n <th>44<\/th>\n <th>45<\/th>\n <th>46<\/th>\n <th>47<\/th>\n <th>48<\/th>\n <th>49<\/th>\n <th>50<\/th>\n <th>51<\/th>\n <th>52<\/th>\n <th>53<\/th>\n <th>54<\/th>\n <th>55<\/th>\n <th>56<\/th>\n <th>57<\/th>\n <th>58<\/th>\n <th>59<\/th>\n <th>60<\/th>\n <th>61<\/th>\n <th>62<\/th>\n <th>63<\/th>\n <th>64<\/th>\n <th>65<\/th>\n <th>66<\/th>\n <th>67<\/th>\n <th>68<\/th>\n <th>69<\/th>\n <th>70<\/th>\n <th>71<\/th>\n <th>72<\/th>\n <th>73<\/th>\n <th>74<\/th>\n <th>75<\/th>\n <th>76<\/th>\n <th>77<\/th>\n <th>78<\/th>\n <th>79<\/th>\n <th>80<\/th>\n <th>81<\/th>\n <th>82<\/th>\n <th>83<\/th>\n <th>84<\/th>\n <th>85<\/th>\n <th>86<\/th>\n <th>87<\/th>\n <th>88<\/th>\n <th>89<\/th>\n <th>90+<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"keys":true,"search":{"regex":true},"searchHighlight":true,"dom":"ftB","buttons":[{"extend":"csv","text":"Download selection"}],"deferRender":true,"scrollX":true,"scrollY":120,"scroller":true,"columnDefs":[{"className":"dt-left","targets":"_all"},{"visible":true,"targets":"_all"}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
<div class="datatables html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-758cf9512b2f3c1984cd" style="width:100%;height:auto;"></div>
<script type="application/json" data-for="htmlwidget-758cf9512b2f3c1984cd">{"x":{"filter":"none","vertical":false,"extensions":["Scroller","Buttons","KeyTable"],"data":[["2022-06-30","2022-06-30","2022-06-30"],["E08000009","E08000009","E08000009"],["Trafford","Trafford","Trafford"],["Local authority","Local authority","Local authority"],["Persons","Females","Males"],[236301,121052,115249],[49323,24013,25310],[145158,74021,71137],[41820,23018,18802],[2283,1115,1168],[2426,1146,1280],[2507,1197,1310],[2888,1446,1442],[2872,1394,1478],[3049,1533,1516],[3242,1605,1637],[3110,1509,1601],[3365,1627,1738],[3282,1572,1710],[3517,1684,1833],[3684,1806,1878],[3307,1597,1710],[3343,1618,1725],[3298,1629,1669],[3150,1535,1615],[3030,1488,1542],[2981,1453,1528],[2726,1325,1401],[1728,779,949],[1804,864,940],[1713,838,875],[2192,1114,1078],[2486,1231,1255],[2443,1200,1243],[2547,1225,1322],[2375,1268,1107],[2431,1186,1245],[2451,1191,1260],[2563,1267,1296],[2753,1374,1379],[2849,1529,1320],[2884,1533,1351],[3087,1663,1424],[3086,1622,1464],[3163,1720,1443],[3439,1783,1656],[3509,1840,1669],[3564,1891,1673],[3497,1821,1676],[3526,1878,1648],[3801,1987,1814],[3632,1878,1754],[3598,1889,1709],[3377,1751,1626],[3195,1635,1560],[3176,1660,1516],[3276,1617,1659],[3156,1600,1556],[3211,1626,1585],[3442,1759,1683],[3401,1725,1676],[3372,1728,1644],[3225,1599,1626],[3211,1612,1599],[3183,1627,1556],[3205,1649,1556],[3210,1599,1611],[3212,1649,1563],[3075,1565,1510],[2879,1449,1430],[2764,1448,1316],[2671,1339,1332],[2581,1298,1283],[2478,1249,1229],[2355,1184,1171],[2261,1108,1153],[2187,1138,1049],[2102,1067,1035],[2009,1065,944],[1998,1041,957],[2030,1066,964],[2050,1115,935],[2018,1049,969],[2166,1129,1037],[2192,1183,1009],[1631,907,724],[1667,944,723],[1663,944,719],[1538,875,663],[1240,699,541],[1169,674,495],[1183,715,468],[1225,696,529],[1079,616,463],[989,586,403],[902,536,366],[757,445,312],[660,399,261],[615,373,242],[2134,1464,670]],"container":"<table class=\"cell-border stripe\">\n <thead>\n <tr>\n <th>Period<\/th>\n <th>Area Code<\/th>\n <th>Area Name<\/th>\n <th>Geography<\/th>\n <th>Sex<\/th>\n <th>All Ages<\/th>\n <th>Aged 0 To 15<\/th>\n <th>Aged 16 To 64<\/th>\n <th>Aged 65 And Over<\/th>\n <th>0<\/th>\n <th>1<\/th>\n <th>2<\/th>\n <th>3<\/th>\n <th>4<\/th>\n <th>5<\/th>\n <th>6<\/th>\n <th>7<\/th>\n <th>8<\/th>\n <th>9<\/th>\n <th>10<\/th>\n <th>11<\/th>\n <th>12<\/th>\n <th>13<\/th>\n <th>14<\/th>\n <th>15<\/th>\n <th>16<\/th>\n <th>17<\/th>\n <th>18<\/th>\n <th>19<\/th>\n <th>20<\/th>\n <th>21<\/th>\n <th>22<\/th>\n <th>23<\/th>\n <th>24<\/th>\n <th>25<\/th>\n <th>26<\/th>\n <th>27<\/th>\n <th>28<\/th>\n <th>29<\/th>\n <th>30<\/th>\n <th>31<\/th>\n <th>32<\/th>\n <th>33<\/th>\n <th>34<\/th>\n <th>35<\/th>\n <th>36<\/th>\n <th>37<\/th>\n <th>38<\/th>\n <th>39<\/th>\n <th>40<\/th>\n <th>41<\/th>\n <th>42<\/th>\n <th>43<\/th>\n <th>44<\/th>\n <th>45<\/th>\n <th>46<\/th>\n <th>47<\/th>\n <th>48<\/th>\n <th>49<\/th>\n <th>50<\/th>\n <th>51<\/th>\n <th>52<\/th>\n <th>53<\/th>\n <th>54<\/th>\n <th>55<\/th>\n <th>56<\/th>\n <th>57<\/th>\n <th>58<\/th>\n <th>59<\/th>\n <th>60<\/th>\n <th>61<\/th>\n <th>62<\/th>\n <th>63<\/th>\n <th>64<\/th>\n <th>65<\/th>\n <th>66<\/th>\n <th>67<\/th>\n <th>68<\/th>\n <th>69<\/th>\n <th>70<\/th>\n <th>71<\/th>\n <th>72<\/th>\n <th>73<\/th>\n <th>74<\/th>\n <th>75<\/th>\n <th>76<\/th>\n <th>77<\/th>\n <th>78<\/th>\n <th>79<\/th>\n <th>80<\/th>\n <th>81<\/th>\n <th>82<\/th>\n <th>83<\/th>\n <th>84<\/th>\n <th>85<\/th>\n <th>86<\/th>\n <th>87<\/th>\n <th>88<\/th>\n <th>89<\/th>\n <th>90+<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"keys":true,"search":{"regex":true},"searchHighlight":true,"dom":"ftB","buttons":[{"extend":"csv","text":"Download selection"}],"deferRender":true,"scrollX":true,"scrollY":120,"scroller":true,"columnDefs":[{"className":"dt-left","targets":"_all"},{"visible":true,"targets":"_all"}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
<div id="tableFooterTitle">
Mid-2022 population estimates for Trafford
</div>
Expand All @@ -3292,7 +3290,7 @@ <h2>
</thead>
<tbody>
<tr class="odd">
<td><a href="mid-year_population_estimates_local_authority.csv">mid-year_2022_population_estimates_local_authority.csv</a></td>
<td><a href="mid-year_2022_population_estimates_local_authority.csv">mid-year_2022_population_estimates_local_authority.csv</a></td>
<td>CSV</td>
</tr>
</tbody>
Expand Down

0 comments on commit eb74043

Please sign in to comment.