valid_codes: Check if country codes are present in 'countries' data frame.

View source: R/codes.R

valid_codesR Documentation

Check if country codes are present in countries data frame.

Description

valid_codes() takes in a vector of country codes and returns a logical vector on whether that country code is present in countries[["iso3"]]

Usage

valid_codes(codes, type = "iso3")

Arguments

codes

Character vector of country codes.

type

A character value specifying the type of country code supplied. All possible values available through country_code_types().

Value

Logical vector.


caldwellst/whotilities documentation built on Aug. 30, 2022, 2:15 a.m.