hkdatasets v0.0.3

0

Monthly downloads

0th

Percentile

Datasets Related to Hong Kong

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.

Readme

hkdatasets

:package: An R data package containing datasets related to Hong Kong

R build status

:page_with_curl: Introduction

This package contains datasets on Hong Kong. This package is developed as part of the Hong Kong Districts Info group of projects, which is dedicated to using data science to help make public information more accessible and consumable. The package contains the following datasets:

  • hkdc - A dataset containing information about Hong Kong District Councillors (elected 2019), with variables such as their constituency, region, share of vote, total votes, link to their Facebook pages, etc. (Sources: https://www.districtcouncils.gov.hk; https://dce2019.hk01.com/)

  • hk_accidents - A dataset containing traffic accidents between 2014 and 2019.

  • hk_collisions - A dataset containing information of collisions by casualties between 2014 and 2019.
  • hk_vehicles - A dataset containing information of vehicles by casualties between 2014 and 2019.

The datasets hk_accidents, hk_collisions, and hk_vehicles are related and can be joined together using the variable Serial_No_. This dataset was made available via a Freedom of Information request to the Hong Kong Transport Department. We would also like to thank the authors behind the {HK80} package to enable us to convert the HK1980GRID coordinate system to longitudes and latitudes in the hk_accidents dataset.

Visit our GitHub

:wrench: Installation

{hkdatasets} is not released on CRAN (yet). You can install the latest development version from GitHub with:

install.packages("devtools")
devtools::install_github("Hong-Kong-Districts-Info/hkdatasets")

:chart_with_upwards_trend: Datasets

If you are exploring the package, we recommend starting with 2019 District Councillors dataset:

library(hkdatasets)
head(hkdc)

To find out more about the variable and the source of the dataset, you can run:

?hkdc

Note: this dataset contains Chinese characters in the UTF-8 encoding.

:mailbox_with_mail: Contact

Please feel free to submit suggestions and report bugs: https://github.com/Hong-Kong-Districts-Info/hkdatasets/issues

Also check out our website for our other work and projects!

You can find out about our current backlog of work on our public Trello Doing board.

Functions in hkdatasets

Name Description
hk_vehicles Dataset of vehicles involved in collisions between 2014 and 2019.
hkdc Dataset with public domain information on Hong Kong District Councillors (elected 2019).
hk_casualties Dataset of casualties involved in collisions between 2014 and 2019.
hk_accidents Dataset on accidents in Hong Kong between 2014 and 2019.
No Results!

Last month downloads

Details

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
NeedsCompilation no
Packaged 2020-10-03 11:52:53 UTC; Martin Chan
Repository CRAN
Date/Publication 2020-10-17 12:10:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/hkdatasets)](http://www.rdocumentation.org/packages/hkdatasets)