Skip to contents

Extract zone number \(n\) from the set of all zones.

Usage

get_zone(n, zones)

Arguments

n

An integer; the number of the zone you wish to retrieve.

zones

A list of integer vectors, representing the set of all zones.

Value

An integer vector.

Examples

zones <- list(1L, 2L, 3L, 1:2, c(1L, 3L), c(2L, 3L))
get_zone(4, zones)
#> [1] 1 2