trees_per_ha.inventory_design: Compute trees per hectare for generic inventory designs

trees_per_ha.inventory_designR Documentation

Compute trees per hectare for generic inventory designs

Description

Return the trees-per-hectare expansion factor for a tree measured under a generic inventory design.

Usage

## S3 method for class 'inventory_design'
trees_per_ha(design, 
    dbh_cm)

Arguments

design

Object of class "inventory_design" created by helpers such as new_inventory_design.

dbh_cm

numeric. Diameter at breast height in cm. When several values are supplied, the method uses their mean after removing missing values.

Details

It returns NA_real_ when all supplied diameters are

missing or when the resulting diameter is smaller than the

minimum threshold supported by the design.

Value

A single numeric expansion factor in trees per hectare

taken from design$sf, or NA_real_ when the tree

does not belong to any tally tier.

Author(s)

Wilson Lara [aut, cre] (ORCID: <https://orcid.org/0000-0003-3527-1380>), Cristobal Ordonez [aut] (ORCID: <https://orcid.org/0000-0001-5354-3760>), Aitor Vázquez-Veloso [aut] (ORCID: <https://orcid.org/0000-0003-0227-506X>), Felipe Bravo [aut] (ORCID: <https://orcid.org/0000-0001-7348-6695>)

Examples

dsg <- new_inventory_design(sample_area_m2 = c(100, 400),
                            min_dbh_cm = c(0, 20),
                            name = "Example design")
trees_per_ha(dsg, 13)

basifoR documentation built on Aug. 26, 2026, 9:06 a.m.