s2level: Extract s2 cell level from data

View source: R/s2cell.R

s2levelR Documentation

Extract s2 cell level from data

Description

Extract s2 cell level from data

Usage

s2level(x, simplify = FALSE)

Arguments

x

object inheriting from s2cellid

simplify

logical to return a single value if all levels are equal.

Value

Integer vector.

Examples

x <- rbind(c(1,0,0), c(0,1,0))
id <- s2cellid(x)
s2level(id)
s2level(id, simplify = TRUE)

id <- s2cellid(x, c(1,30))
s2level(id)

spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.