powered by
Formats AGS with a Leading Zero
format_ags(ags, type, verbose = FALSE)
A character vector.
Input vector that will be coerced into an integer vector. Factor vectors are first coerced to a character vector and then to an integer vector.
Type of AGS supplied as ags. Three options are available:
ags
land: Bundesland AGS (Bundeslandschlüssel, 2 digits)
land
district: District AGS (Kreisschlüssel, 5 digits)
district
municipality: Municipality AGS (Gemeindeschlüssel, 8 digits)
municipality
The abbreviations l, d, and m are also accepted.
l
d
m
If TRUE the function outputs additional information.
TRUE
format_ags(c(1,14), type="land") format_ags(c(1002,14612), type="district") format_ags(c(01002000,14612000), type="municipality")
Run the code above in your browser using DataLab