Returns the leading country code: the first run of n word-characters,
matching how upstream systems parse the code.
Examples
epid_country_code(c("NIE-BOS-XYZ-24-001", "ago-lua-01", NA))
#> [1] "NIE" "AGO" NA
Returns the leading country code: the first run of n word-characters,
matching how upstream systems parse the code.
epid_country_code(c("NIE-BOS-XYZ-24-001", "ago-lua-01", NA))
#> [1] "NIE" "AGO" NA