get_table | R Documentation |
Retrieve a 'nomis' table, containing the columns of interest, using a given table ID. Option to apply filters to the query, and to circumnavigate the limit on number of rows returned using your 'nomis' uid.
get_table(
id,
options,
selection = NULL,
uid = NULL,
base_url = "https://www.nomisweb.co.uk/api/v01"
)
id |
a table ID recognised by 'nomis' (e.g. "NM_1_1") |
options |
a list of paramaters to pass to the API query. |
selection |
a vector of column names to return. NULL returns all. Defaults to NULL. |
uid |
Unique 'nomis' identifier to enable larger 'nomis' queries - https://www.nomisweb.co.uk/. Defaults to NULL. |
base_url |
Nomis base url to query |
A tidy dataframe of selected 'nomis' table with the selected parameters and user filters applied.
get_table(id="NM_1_1", options = list("geography" = "TYPE480", "time" = "latest"))
get_table(id="NM_1002_1", options = list("geography" = "TYPE265", "time" = "latest"),
selection = "GEOGRAPHY_NAME,C_AGE_NAME,OBS_VALUE",uid=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.