nclusters: Number of clusters

View source: R/nclusters.R

nclustersR Documentation

Number of clusters

Description

nclusters returns the number of clusters identified in a smerc_cluster object.

Usage

nclusters(x)

Arguments

x

A smerc_cluster object

Value

A non-negative integer.

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.3, longlat = TRUE
)
nclusters(out)

jfrench/smerc documentation built on Oct. 27, 2024, 5:13 p.m.