get_locality_lookup: Read in most recent Geography team locality lookup file

View source: R/get_locality_lookup.R

get_locality_lookupR Documentation

Read in most recent Geography team locality lookup file

Description

Read in the most recent locality-level lookup file from the Geographies team with specified columns

Usage

get_locality_lookup(
  columns,
  aggregate = FALSE,
  matching_variable = NULL,
  new_variables = NULL
)

Arguments

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

Value

A tibble with the selected columns to use as a lookup

Examples

x <- locality_lookup("20200825", c("datazone2011", "hscp_locality"))
y <- x <- get_locality_lookup("20200825", c("ca2019name", "ca2011"), aggregate = TRUE, ca2019name, ca2011)


shintoLamp/bluenile documentation built on Aug. 6, 2022, 6:29 a.m.