Learn R Programming

smerc (version 1.8.3)

noz: Determine non-overlapping zones

Description

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

Usage

noz(x)

Value

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

Arguments

x

A list containing the candidate zones.

Author

Joshua French

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.

Examples

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

Run the code above in your browser using DataLab