Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

noc

Determine non-overlapping clusters


Description

Determine non-overlapping clusters from a list of potential clusters.

Usage

noc(x)

Arguments

x

A list containing the potential clusters.

Details

The function takes a list of potential clusters. Each element of the list contains a potential cluster. The potential clusters are defined by the location indices of the regions comprising the clusters. Starting with the first potential cluster, the function excludes every potential cluster that intersects the first (any potential cluster that shares indices). Moving onto the next non-overlapping cluster, the process is repeated. The function returns the indices (in the list of clusters) of the clusters that do not overlap.

Value

A vector with the list indices of the non-overlapping clusters.

Author(s)

Joshua French

Examples

x = list(1:2, 1:3, 4:5, 4:6, 7:8)
noc(x)

smacpod

Statistical Methods for the Analysis of Case-Control Point Data

v2.1.1
GPL (>= 2)
Authors
Joshua French [aut, cre] (<https://orcid.org/0000-0002-9708-3353>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.