A vectorised membership predicate built on country_groups().
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").
Examples
in_group(c("France", "United States", "Japan"), "EU")
#> [1] TRUE FALSE FALSE
