n_cells | R Documentation |
Quadtree
Returns the number of nodes/cells in the quadtree.
## S4 method for signature 'Quadtree'
n_cells(x, terminal_only = TRUE)
x |
a |
terminal_only |
boolean; if |
a numeric
library(quadtree)
habitat <- terra::rast(system.file("extdata", "habitat.tif", package="quadtree"))
qt <- quadtree(habitat, .1)
n_cells(qt)
n_cells(qt, terminal_only = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.