View source: R/get_locality_lookup.R
get_locality_lookup | R Documentation |
Read in the most recent locality-level lookup file from the Geographies team with specified columns
get_locality_lookup( columns, aggregate = FALSE, matching_variable = NULL, new_variables = NULL )
columns |
A character vector of columns |
aggregate |
Should the lookup be aggregated? (default FALSE) |
matching_variable |
The level to which the lookup should be aggregated |
new_variables |
The variable(s) you wish to match on to your dataset |
suffix |
A string in "YYYYMMDD" format correlating to most recent geography file |
A tibble with the selected columns to use as a lookup
x <- locality_lookup("20200825", c("datazone2011", "hscp_locality")) y <- x <- get_locality_lookup("20200825", c("ca2019name", "ca2011"), aggregate = TRUE, ca2019name, ca2011)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.