s2level | R Documentation |
Extract s2 cell level from data
s2level(x, simplify = FALSE)
x |
object inheriting from |
simplify |
logical to return a single value if all levels are equal. |
Integer vector.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.