get_name_from_area_code {geogenr}R Documentation

Get name from area code

Description

Get the name of the area from the code that appears in the name of the area files.

Usage

get_name_from_area_code(ac, area)

## S3 method for class 'acs_5yr'
get_name_from_area_code(ac, area)

Arguments

ac

An acs_5yr object.

area

A string, area name.

Value

A vector, area code.

See Also

Other information functions: get_code_from_area_name()

Examples


dir <- system.file("extdata/acs_5yr", package = "geogenr")
ac <- acs_5yr(dir)

name <- ac |>
  get_name_from_area_code(area = "METDIV")


[Package geogenr version 2.0.1 Index]