This branch adds 2020 and 2021 collision data into the dataset, with major changes in the column names.
Changes
The changes made in this PR are:
Add cleaned and manipulated 2020 and 2021 collision data to the 4 datasets used in the app (hk_collisions, hk_vehicles, hk_casualties and hk_collisions_valid_sf)
Renamed accidents related variables to collision. It is to follow the “collision not accident” campaign in naming collisions/crashes, although TD still refers to the relevant tables as ‘accidents’ data.
Revise column names of raw collision data. Following the tidyverse variable naming convention, all variables are in lowercase and separated by underscore.
Update default collisions shown in the map to those in 2021. Originally collisions that happened in 2016 are shown in default.
Update the default district dashboard range to 2017-2021. The original range is from 2015 to 2019.
Added translation of Unknown vehicle collision type. It is a new collision type in 2020 and 2021 raw data.
Check
[x] (If UI & data are updated) The UI & data includes Traditional Chinese translation, with translation terms wrapped in i18n$t() and terms added to translation_zh.csv
Summary
This branch adds 2020 and 2021 collision data into the dataset, with major changes in the column names.
Changes
The changes made in this PR are:
hk_collisions
,hk_vehicles
,hk_casualties
andhk_collisions_valid_sf
)accidents
related variables tocollision
. It is to follow the “collision not accident” campaign in naming collisions/crashes, although TD still refers to the relevant tables as ‘accidents’ data.Unknown vehicle collision type
. It is a new collision type in 2020 and 2021 raw data.Check
i18n$t()
and terms added totranslation_zh.csv