sfind {states} | R Documentation |
Lookup country codes or names
Description
Helper to look up state list entries by country code or name
Usage
sfind(x, list = "both")
Arguments
x |
The search string or number. |
list |
Which state list to search (both, GW, or COW only) |
Examples
# 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")
[Package states version 0.3.2 Index]