Formats AGS with a Leading Zero
format_ags(ags, type, verbose = FALSE)
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:
land
: Bundesland AGS (Bundeslandschlüssel, 2 digits)
district
: District AGS (Kreisschlüssel, 5 digits)
municipality
: Municipality AGS (Gemeindeschlüssel, 8 digits)
The abbreviations l
, d
, and m
are also accepted.
If TRUE
the function outputs additional information.
A character vector.