as_vector | R Documentation |
Quadtree
cell values as a vectorReturns all cell values of a Quadtree
as a
numeric vector.
## S4 method for signature 'Quadtree'
as_vector(x, terminal_only = TRUE)
x |
a |
terminal_only |
boolean; if |
a numeric vector
as_data_frame
creates a data frame from a
Quadtree
that has all the cell values as well as details
about each cell's size and extent.
library(quadtree)
habitat <- terra::rast(system.file("extdata", "habitat.tif", package="quadtree"))
qt <- quadtree(habitat, .2)
head(as_vector(qt), 20)
head(as_vector(qt, FALSE), 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.