powered by
This function checks whether a given province code corresponds to a province that has been expanded (i.e., administratively split or modified).
is_expanded(reg_code)
A logical value:
TRUE if the province is marked as expanded,
TRUE
FALSE otherwise.
FALSE
non-harmonized province code (character or numeric).
The function looks up the internal dataset prov_coverage. Expansion status is determined by the field expanded.
prov_coverage
expanded
get_code_label()
# Example: check expansion status of a province get_code_label(5) #returns list of non-harmonized province code is_expanded(1400) # returns TRUE/FALSE for Riau province
Run the code above in your browser using DataLab