quadtree
:
An R package for region quadtreesquadtree
provides functionality for working with
raster-like quadtrees (called “region quadtrees”), which allow for
variable-sized cells.
library(quadtree)
<- terra::rast(system.file("extdata", "habitat.tif", package="quadtree")) # load sample data
habitat <- quadtree(habitat, .03, "sd") # create a quadtree qt
The package can be installed from CRAN using
install.packages()
:
install.packages("quadtree")
The development version can be installed from GitHub using
devtools::install_github()
:
# install.packages("devtools")
::install_github("dfriend21/quadtree") devtools
Visit the package website for more information.
quadtree
packageThe best way to learn about the package is by reading the vignettes, which are available through R and through the package website. I’d suggest reading the vignettes in this order: