n_cells {quadtree} | R Documentation |
Get the number of cells in a Quadtree
Description
Returns the number of nodes/cells in the quadtree.
Usage
## S4 method for signature 'Quadtree'
n_cells(x, terminal_only = TRUE)
Arguments
x |
a |
terminal_only |
boolean; if |
Value
a numeric
Examples
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)
[Package quadtree version 0.1.14 Index]