An open API service indexing awesome lists of open source software.

https://github.com/elgarteo/legco

R bindings for the Hong Kong Legislative Council API R中使用香港立法會開放數據應用程式介面
https://github.com/elgarteo/legco

hongkong legco opendata parliament politics

Last synced: about 1 month ago
JSON representation

R bindings for the Hong Kong Legislative Council API R中使用香港立法會開放數據應用程式介面

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# legco: Accessing Hong Kong Legislative Council Data

[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/legco)](https://cran.r-project.org/package=legco)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

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

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

To install this package, run:

```{r eval=FALSE}
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.

## How it works

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

* [Bills Database](https://www.legco.gov.hk/en/open-legco/open-data/bills-database.html)
* [Hansard Database](https://www.legco.gov.hk/en/open-legco/open-data/hansard-database.html)
* [Meeting Attendance Database](https://www.legco.gov.hk/en/open-legco/open-data/meeting-attendance.html)
* [Meeting Schedule Database](https://www.legco.gov.hk/en/open-legco/open-data/meeting-schedule.html)
* [Voting Result Database](https://www.legco.gov.hk/en/open-legco/open-data/voting-result-database.html)

## How to use

Read the [vignettes](https://elgarteo.github.io/legco/) 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.