% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classify.R
\name{classify}
\alias{classify}
\alias{is_sids}
\alias{is_snij}
\alias{is_small_island}
\title{Classify countries and territories}
\usage{
is_sids(x)

is_snij(x)

is_small_island(x)
}
\arguments{
\item{x}{A character vector of ISO codes or country names.}
}
\value{
A logical vector the same length as \code{x}.
}
\description{
Predicate helpers that return a logical vector aligned with the input.
}
\details{
Inputs are resolved in three passes: direct match against the
\code{iso_code} column of \code{\link{islands}}, then a case-insensitive
match against \code{name}, then a fallback through
\code{\link[countrycode]{countrycode}} from \code{"country.name"} to
\code{"iso2c"}. Unresolved entries return \code{NA}.

Hyphenated codes (\code{"BQ-BO"} for Bonaire, \code{"BQ-SE"} for
Sint Eustatius, \code{"BQ-SA"} for Saba) are accepted directly. Bare
\code{"BQ"} is ambiguous within the bundled dataset; pass the
specific island code or the country name instead.
}
\examples{
is_sids(c("Aruba", "Curacao", "Bonaire", "Brazil"))
is_snij(c("Aruba", "Curacao", "Bonaire", "Brazil"))
is_small_island(c("AW", "CW", "BQ-BO", "BR", "AX"))

}
