Extract zone number \(n\) from the set of all 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.
Examples
zones <- list(1L, 2L, 3L, 1:2, c(1L, 3L), c(2L, 3L))
get_zone(4, zones)
#> [1] 1 2