trees_per_ha: Compute trees-per-hectare expansion factors from inventory...

trees_per_haR Documentation

Compute trees-per-hectare expansion factors from inventory designs

Description

Return the expansion factor, expressed as trees per hectare, associated with a tree of a given diameter at breast height under a supported inventory design.

Usage

trees_per_ha(design, 
    dbh_cm)

Arguments

design

Sampling design object. Supported methods currently include "inventory_design" and "concentric_design".

dbh_cm

numeric. Diameter at breast height in cm. When several values are supplied, methods first coerce them to numeric and then use their mean after removing missing values.

Details

Current methods return NA_real_ when diameter is

missing after preprocessing or falls below the smallest

supported threshold in the supplied design.

Value

A single numeric value giving the trees-per-hectare

expansion factor for the supplied diameter and design, or

NA_real_ when no valid factor can be assigned.

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))
trees_per_ha(dsg, 13)

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