clusters: Extract clusters

Description Usage Arguments Value Examples

View source: R/clusters.R

Description

clusters extracts the clusters contained in a smerc_cluster object.

Usage

1

Arguments

x

An object of class smerc_cluster.

Value

A list. Each element of the list is a vector with the indices of event locations in the associated cluster.

Examples

1
2
3
4
5
6
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)

smerc documentation built on Oct. 1, 2021, 5:07 p.m.