Title: | Datasets Related to Hong Kong |
Version: | 1.0.0 |
Description: | Datasets related to Hong Kong, including information on the 2019 elected District Councillors (https://www.districtcouncils.gov.hk and https://dce2019.hk01.com/) and traffic collision data from the Hong Kong Department of Transport (https://www.td.gov.hk/). All of the data in this package is available in the public domain. |
License: | GPL-3 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.1.1 |
URL: | https://hong-kong-districts-info.github.io/hkdatasets/ |
BugReports: | https://github.com/Hong-Kong-Districts-Info/hkdatasets/issues |
Maintainer: | Martin Chan <martinchan53@gmail.com> |
Depends: | R (≥ 3.5.0) |
Imports: | utils, fst |
Suggests: | dplyr, tidyr, here |
NeedsCompilation: | no |
Packaged: | 2021-09-04 16:05:25 UTC; martinchan |
Author: | Martin Chan [aut, cre], Avision Ho [ctb], Ocean Cheung [ctb], Justin Yim [ctb], Gabriel Tam [ctb] |
Repository: | CRAN |
Date/Publication: | 2021-09-04 16:20:02 UTC |
Download and Extract data from online sources
Description
Download and extract data from preset online sources, specifying the name of the dataset.
Usage
download_data(dataset = NULL)
Arguments
dataset |
String containing the name of the dataset. Valid values
include:
- |
Details
This supersedes the method for pulling hk_accidents
,
hk_casualties
, and hk_vehicles
due to the size of the data file. Refer
to https://hong-kong-districts-info.github.io/hkdatasets/ to access the
data documentation for three datsets.
Value
A data frame is returned.
Examples
# You can download and return a dataset with the following code:
download_data(dataset = "hk_vehicles")
Land-based non-institutional population by District Council district and age group
Description
Land-based non-institutional population by District Council district and age group
Usage
hkagepop19
Format
A data frame with 18 rows and 8 variables:
- District_ZH
District Name in Chinese
- District_EN
District Name in English
- Age_0_14
Population aged between 0 and 14
- Age_15_24
Population aged between 15 and 24
- Age_25_44
Population aged between 25 and 44
- Age_45_64
Population aged between 45 and 64
- Age_65
Population aged 65+
- TotalPopulation
Total population per district
...
Details
This dataset is updated as of 2019. Numbers represent estimates of population based on calculated census percentages.
Source
https://www.censtatd.gov.hk/hkstat/sub/sp150.jsp?productCode=FA100096
Dataset with public domain information on Hong Kong District Councillors (elected 2019).
Description
A dataset containing public domain information of the 452 Hong Kong District Councillors elected in 2019.
Usage
hkdc
Format
A data frame with 452 rows and 33 variables:
- ConstituencyCode
Constituency code for the District Council
- Constituency_ZH
Constituency name in Chinese
- Constituency_EN
Constituency name in English
- District_ZH
District name in Chinese
- District_EN
District name in English
- Region_ZH
Region name in Chinese
- Region_EN
Region name in English
- Party_ZH
Party name in Chinese
- Party_EN
Party name in English
- DC_ZH
District Councillor name in Chinese
- DC_EN
District Councillor name in English
- FacebookURL
URL of the DC's Facebook Page
- DCPageURL
URL of the DC's official page
- Address
Office address of the DC
- Phone
Phone number of the DC
- Fax
Fax number of the DC
Email address of the DC
- WebsiteURL
URL of the DC's non government page
- DCProjectPageURL
URL of the DC's page listing on Hong Kong Districts Info
- ElectionYear
Year when the DC is elected
- ElectionDate
Date when the DC is elected
- CandidateNum
Candidate number of the DC when elected
- Occupation
Occupation of the DC when elected
- Political_ZH
Political Party of the DC when elected in Chinese
- Political_EN
Political Party of the DC when elected in English
- Camp_ZH
Political leaning/camp of the DC when elected in Chinese
- Camp_EN
Political leaning/camp of the DC when elected in English
- Vote
Number of votes won
- VotePercentage
Share of vote
- Gender_ZH
Gender of the DC in Chinese
- Gender_EN
Gender of the DC in English
- Tag_ZH
Granular political leaning/camp of the DC when elected in Chinese
- Tag_EN
Granular political leaning/camp of the DC when elected in English
...
Source
https://www.districtcouncils.gov.hk
Dataset summarising the labels and regions of Hong Kong's Districts
Description
This is a summary table that details the region classification and abbreviated labels of Hong Kong's districts.
Usage
hkdistrict_summary
Format
A data frame with 18 rows and 5 variables:
- Code
District Code
- District_EN
District name in English
- District_ZH
District name in Chinese
- Region_EN
Region name in English
- Region_ZH
Region name in Chinese
- Abbrev
District Abbreviation
...
Dataset with Hong Kong Street Names as at 2020.
Description
A dataset containing street names in Hong Kong as at 2020.
Usage
hkstreetnames20
Format
A data frame with 4603 rows and 21 variables:
- DC
Constituency code for the District Council
- StreetNames_EN
Street name in English
- StreetNames_ZH
Street name in Chinese
- TM
Tuen Mun district
- ST
Sha Tin district
- E
Eastern district
- S
Southern district
- WC
Wan Chai district
- C&W
Central and Western district
- Is
Islands district
- YL
Yuen Long district
- SK
Sai Kung district
- KC
Kowloon City district
- YTM
Yau Tsim Mong district
- KT
Kwun Tong district
- SSP
Sham Shui Po district
- N
North district
- TP
Tai Po district
- K&T
Kwai Tsing district
- TW
Tsuen Wan district
- WTS
Wong Tai Sin district
...