% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gho.R
\name{gho_dimensions}
\alias{gho_dimensions}
\title{List Dimensions of a GHO Indicator}
\usage{
gho_dimensions(indicator, dimension = "SpatialDimType")
}
\arguments{
\item{indicator}{Character scalar. The indicator code
(e.g. \code{"NCDMORT3070"}).}

\item{dimension}{Character. Name of the dimension column in the
indicator data. Common values include \code{"SpatialDim"},
\code{"SpatialDimType"}, \code{"TimeDim"}, \code{"Dim1"}, \code{"Dim2"}, and
\code{"Dim3"}. Default \code{"SpatialDimType"}.}
}
\value{
A character vector of unique, sorted dimension values,
or an empty character vector when the service is unreachable
or the dimension is missing.
}
\description{
Returns the unique values of a given dimension across all
observations of a GHO indicator. Useful for discovering which
ages, sexes, regions, or other breakdowns are available before
calling \code{\link[=gho_data]{gho_data()}}.
}
\examples{
\donttest{
gho_dimensions("NCDMORT3070")
gho_dimensions("NCDMORT3070", dimension = "Dim1")
}
}
\seealso{
\code{\link[=gho_data]{gho_data()}}, \code{\link[=gho_indicators]{gho_indicators()}}.
}
