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

Description Usage Arguments Value

View source: R/codes.R

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

1
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 April 8, 2021, 3:52 a.m.