sfind: Lookup country codes or names

View source: R/data-docs.R

sfindR 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")

states documentation built on Sept. 8, 2023, 5:48 p.m.