noz: Determine non-overlapping zones

View source: R/noz.R

nozR Documentation

Determine non-overlapping zones

Description

Determine non-overlapping zones from a list of candidate zones.

Usage

noz(x)

Arguments

x

A list containing the candidate zones.

Details

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

Value

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

Author(s)

Joshua French

Examples

x <- list(1:2, 1:3, 4:5, 4:6, 7:8)
noz(x)

smerc documentation built on Oct. 10, 2023, 5:07 p.m.