clusters.spscan: Extract clusters

View source: R/extract.clusters.R

clusters.spscanR Documentation

Extract clusters

Description

Extract clusters

Usage

## S3 method for class 'spscan'
clusters(x, idx = seq_along(x$clusters), ...)

Arguments

x

An object of class spscan from the spscan.test

idx

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

...

Currently unimplemented

Value

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

Examples

data(grave)
# apply scan method
out = spscan.test(grave, nsim = 99)
# print scan object
clusters(out)

smacpod documentation built on Sept. 22, 2023, 1:06 a.m.