Skip to contents

A vectorised membership predicate built on country_groups().

Usage

in_group(x, group, origin = "country.name")

Arguments

x

A vector of country names or codes.

group

A single group name (see country_groups()).

origin

How to read x (default "country.name").

Value

A logical vector the same length as x.

Examples

in_group(c("France", "United States", "Japan"), "EU")
#> [1]  TRUE FALSE FALSE