| dbhMetric | R Documentation |
Convert raw tree diameter or height inputs into the compact metric formats used across basifoR workflows.
dbhMetric(dbh, met = "d",
design = snfi_design())
dbh |
|
met |
|
design |
Object inheriting from |
The sampling design affects only met = "n". For "d", "ba", and "h", the returned value does not depend on design.
A single numeric value. Returns mean diameter in mm for met = "d", basal area in m^2 per tree for met = "ba", trees per hectare for met = "n", and height in m for met = "h". Returns NA_real_ when all supplied values are missing or become missing after zero replacement.
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>)
dbhMetric(300, "d")
dbhMetric(300, "ba")
dbhMetric(18, "h")
dsg <- new_concentric_design(
radii_m = c(4, 8, 12),
min_dbh_cm = c(5, 15, 30),
name = "3-subplot design"
)
dbhMetric(130, "n", design = dsg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.