Utility Functions for Forest Inventory and Silviculture
Overview
Perform common dendrometry operations such as inventory preparing, and inventory data analysis.
This new version brings new naming conventions that will be useful for sorting the package into "modules" of related functions.
silv_tree_*(): tree-level metrics (although some can be also used as stand-level using thentreesargument).silv_stand_*(): stand or plot-level metricssilv_predict_*(): predictions based on models
The old functions are now deprecated and will be eliminated in a future release.
New functions
silv_density_sdi(): calculates the Stand Density Indexsilv_predict_height(): estimates height from diameter, using the so-called h-d curves. The argumentequationallows to choose which equations to use. Currently, onlyeq_hd_aitor2025()available.silv_stand_dominant_diameter(): calculates dominant diameter using two methods:Assman: the mean diameter of the 100 thickest trees per hectareWeise: the quadratic mean diameter of the 20% thickest trees per hectareeq_biomass_*(): equations to be used inside themodelargument ofsilv_predict_biomass().
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
Bug Fixes
- Fix an error with the validator of variable names in
silviculture::InventoryS7 class. biomass_models: some were failing because the "-" sign was parsed as an em dash.
Enhancements
- Prediction functions (
silv_predict_*()) will now have common arguments, and specific arguments that depend of the model used that are specified as a function (e.g.silv_predict_height(model = eq_hd_aitor2025())). silv_volume(): it assumed diameter to be in meters. Now the diameter must be given in centimeters. An informing message was added to the function.- S7
silviculture::Inventoryclass now stores groups.
Deprecated functions
silv_diametric_class()deprecated in favour ofsilv_tree_dclass()silv_basal_area()deprecated in favour ofsilv_tree_basal_area()andsilv_stand_basal_area()silv_volume()deprecated in favour ofsilv_tree_volume()silv_dominant_height()deprecated in favour ofsilv_stand_dominant_height()silv_lorey_height()deprecated in favour ofsilv_stand_lorey_height()silv_sqrmean_diameter()deprecated in favour ofsilv_stand_qmean_diameter()silv_spacing_index()deprecated in favour ofsilv_density_hart()silv_ntrees_ha()deprecated in favour ofsilv_density_ntrees_ha()silv_biomass()deprecated in favour ofsilv_predict_biomass()
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 49 (9 internal)includes a package overview page
- Examples that run
- 100%37 run in a plain check
- Exported functions with examples
- 97%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 14%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 11
- Median days to close, 50 most recently updated closed PRs
- 11
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/cidree/silviculture on 2026-10-22.
GitHub Pages site last deployed 2026-10-04 · The repository has a site deploy workflow
pkgdown site last built 2026-10-04
Show all practicesHide 1 practice
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.2.0Latest2025-09-28 · current release · diff ↗ ·
added 24 exports
eq_biomass_cudjoe_2024, eq_biomass_dieguez_aranda_2009, eq_biomass_manrique_2017, eq_biomass_menendez_2022, eq_biomass_montero_2005, eq_biomass_ruiz_peinado_2011, eq_biomass_ruiz_peinado_2012, eq_hd_vazquez_veloso_2025, silv_density_hart, silv_density_ntrees_ha, silv_density_sdi, silv_predict_biomass, silv_predict_height, silv_sample_size_simple, silv_sample_size_stratified, silv_stand_basal_area, silv_stand_dominant_diameter, silv_stand_dominant_height, silv_stand_lorey_height, silv_stand_qmean_diameter, silv_treatment_thinning, silv_tree_basal_area, silv_tree_dclass, silv_tree_volume - 0.1.02025-05-29
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-05-29
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 12 KB / 2 files
- Download size
- 388 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("silviculture")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.