location_code_to_granularity_geo {csdata} | R Documentation |
Convert location_code to granularity_geo
Description
Convert location_code to granularity_geo
Usage
location_code_to_granularity_geo(x, location_reference = NULL)
Arguments
x |
Either a vector, or a data.frame/data.table containing a column called "location_code". |
location_reference |
A location reference data.table. |
Value
Character vector the same length as x, containing the corresponding granularity_geo.
Examples
csdata::location_code_to_granularity_geo(c("nation_nor", "county_nor03"))
[Package csdata version 2024.4.26 Index]