s2level: Extract s2 cell level from data

Description Usage Arguments Value Examples

View source: R/s2cell.R

Description

Extract s2 cell level from data

Usage

1
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

1
2
3
4
5
6
7
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 July 5, 2017, 11:47 p.m.