powered by
Helper to look up state list entries by country code or name
sfind(x, list = "both")
The search string or number.
Which state list to search (both, GW, or COW only)
# Works with either integer or strings sfind(325) sfind("ALG") sfind("Algeria") # Search strings are treated as regular expressions (see stringr::str_detect) sfind("Germany") sfind("German")
Run the code above in your browser using DataLab