powered by
Obtain the code that appears in the name of the file associated with the area.
get_code_from_area_name(ac, area)# S3 method for acs_5yr get_code_from_area_name(ac, area)
# S3 method for acs_5yr get_code_from_area_name(ac, area)
A vector, area code.
An acs_5yr object.
acs_5yr
A string, area name.
Other information functions: get_name_from_area_code()
get_name_from_area_code()
dir <- system.file("extdata/acs_5yr", package = "geogenr") ac <- acs_5yr(dir) code <- ac |> get_code_from_area_name(area = "State")
Run the code above in your browser using DataLab