clusters: Extract clusters

View source: R/clusters-method.R

clustersR Documentation

Extract clusters

Description

clusters extracts the clusters contained in x.

Usage

clusters(x, idx = seq_along(x$clusters), ...)

Arguments

x

An object with clusters.

idx

An index vector indicating the elements of x$clusters to print information for. The default is all clusters.

...

Currently unimplemented

Author(s)

Joshua French

Examples

data(nydf)
coords <- with(nydf, cbind(longitude, latitude))
out <- scan.test(
  coords = coords, cases = floor(nydf$cases),
  pop = nydf$pop, nsim = 19,
  alpha = 0.2, longlat = TRUE
)
clusters(out)
clusters(out, idx = 1:2)

smerc documentation built on Oct. 13, 2022, 9:07 a.m.