This function stores the mapping between administrative division codes (areacode) and their corresponding attributes (values) into a specific dictionary file, such as registry_dict or area_type_dict.

write_registry(x = NULL, dict_type = "registry")

# S3 method for class 'data.frame'
write_registry(x = NULL, dict_type = "registry")

# S3 method for class 'list'
write_registry(x = NULL, dict_type = "registry")

# S3 method for class '`NULL`'
write_registry(x = NULL, dict_type = "registry")

# S3 method for class 'character'
write_registry(x = NULL, dict_type = "registry")

Arguments

x

A named list where names are six-digit administrative division codes, and values are corresponding attributes (e.g., registry names or area types such as 'Urban').

dict_type

A string indicating the type of dictionary ('registry' or area_type').

Value

A tibble containing the updated dictionary.