allometric provides structured allometric models for predicting tree
attributes. Browse the model catalog
and the publication catalog, or
read the Using Models
guide to install the
package and predict with models.
Install the package from GitHub with devtools:
devtools::install_github("allometric/allometric")Install the compiled model distribution locally:
library(allometric)
install_models()The models are downloaded from the public models repository. Load them with:
allometric_models <- load_models()Select a model and use it to predict stem volume from diameter outside
bark at breast height (dsob, in cm) and total stem height (hst, in
m):
poudel_model <- allometric_models |>
dplyr::filter(pub_id == "poudel_2019") |>
select_model("1bc22c7e")
predict(poudel_model, 12, 65)
#> 0.6231063 [m^3]See the Using Models
guide and the
allometric package
reference for more
examples, model discovery, variable naming, and advanced prediction
workflows.
To add models to the corpus, see the Contributing Models guide.