get_code_from_area_name {geogenr} | R Documentation |
Get code from area name
Description
Obtain the code that appears in the name of the file associated with the area.
Usage
get_code_from_area_name(ac, area)
## S3 method for class 'acs_5yr'
get_code_from_area_name(ac, area)
Arguments
ac |
An |
area |
A string, area name. |
Value
A vector, area code.
See Also
Other information functions:
get_name_from_area_code()
Examples
dir <- system.file("extdata/acs_5yr", package = "geogenr")
ac <- acs_5yr(dir)
code <- ac |>
get_code_from_area_name(area = "State")
[Package geogenr version 2.0.1 Index]