nomis_codelist | R Documentation |
Nomis uses its own internal coding for query concepts. nomis_codelist
returns the codes for a given concept in a tibble
, given a dataset
ID and a concept name.
Note that some codelists, particularly geography, can be very large.
nomis_codelist(id, concept, search = NULL)
id |
A string with the ID of the particular dataset. Must be specified. |
concept |
A string with the variable concept to return options for. If
left empty, returns all the variables for the dataset specified by |
search |
Search for codes that contain a given string. The wildcard
character |
A tibble with the codes used to query specific concepts.
nomis_data_info()
nomis_get_metadata()
nomis_overview()
x <- nomis_codelist("NM_1_1", "item")
# Searching for codes ending with "london"
y <- nomis_codelist("NM_1_1", "geography", search = "*london")
z <- nomis_codelist("NM_161_1", "cause_of_death")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.