legco_api | R Documentation |
A generic function to access LegCo APIs.
legco_api(db, query, n = 1000, count = FALSE, verbose = TRUE)
db |
the database you wish to access. |
query |
the query for retrieving data. Should include the data endpoint and parameters if any. |
n |
the number of record to fetch. Defaults to |
count |
logical: Whether to return only the total count of records that
matches the parameter(s) instead of the result. Defaults to |
verbose |
logical: Whether to display progress messages when fetching
data? Defaults to |
# Fetch data from the "bills" endpoint of the hansard database x <- legco_api("hansard", "Bills")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.