R Bindings for the Hong Kong Legislative Council API

Fetching data from Hong Kong Legislative Council's open data API in R. Functions correspond to the data endpoints of the API. Documentations of supported API databases: < https://www.legco.gov.hk/odata/english/billsdb.html>, < https://www.legco.gov.hk/odata/english/hansard-db.html>, < https://www.legco.gov.hk/odata/english/attendance-db.html>, < https://www.legco.gov.hk/odata/english/schedule-db.html> and < https://www.legco.gov.hk/odata/english/vrdb.html>.


legco: Accessing Hong Kong Legislative Council Data

CRAN_Status_Badge License:MIT

R bindings for the Hong Kong Legislative Council (LegCo) API.

本套件提供能在R中直接透過香港立法會開放數據應用程式介面擷取數據的函數。

To install this package, run:

install.packages("legco")

# To install the development version:
#install.packages("devtools")
devtools::install_github("elgarteo/legco")

What it does

This R package provides access to the LegCo open data API in R. The functions in this package correspond to the data endpoints of the API.

It is recommended to also install an add-on package elgarteo/legcoplus which provides functions that facilitate the use of LegCo’s data.

How it works

This package compiles the correct query and requests data from the following databases of the LegCo API:

How to use

Read the vignettes for details.

Disclaimer

This package is not affiliated or endorsed by the Legislative Council of Hong Kong.

The Legislative Council of Hong Kong is the copyright owner of data retrieved from its open data API.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("legco")

0.1.4 by Elgar Teo, 5 years ago


https://github.com/elgarteo/legco


Report a bug at https://github.com/elgarteo/legco/issues


Browse source code at https://github.com/cran/legco


Authors: Elgar Teo


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, httr, jsonlite, utils

Suggests curl, httptest, knitr, rmarkdown


See at CRAN