R/clusters-smerc_cluster.R

Defines functions clusters.smerc_cluster

#' @method clusters smerc_cluster
#' @export
clusters.smerc_cluster <- function(x, idx = seq_along(x$clusters), ...) {
  if (min(idx) < 1 | max(idx) > length(x$clusters)) {
    stop("invalid idx values")
  }
  lget(x$clusters[idx], "locids")
}
jfrench/smerc documentation built on Oct. 27, 2024, 5:13 p.m.