Predicate helpers that return a logical vector aligned with the input.
Details
Inputs are resolved in three passes: direct match against the
iso_code column of islands, then a case-insensitive
match against name, then a fallback through
countrycode from "country.name" to
"iso2c". Unresolved entries return NA.
Hyphenated codes ("BQ-BO" for Bonaire, "BQ-SE" for
Sint Eustatius, "BQ-SA" for Saba) are accepted directly. Bare
"BQ" is ambiguous within the bundled dataset; pass the
specific island code or the country name instead.