biomassCalculator: This function is to calculate aboveground biomass for boreal...

View source: R/biomassCalculator.R

biomassCalculatorR Documentation

This function is to calculate aboveground biomass for boreal species based on DBH or DBH/Height

Description

This function is to calculate aboveground biomass for boreal species based on DBH or DBH/Height

Usage

biomassCalculator(
  species,
  DBH,
  heightIncluded = TRUE,
  height,
  paperSource = "Lambert2005"
)

Arguments

species

Character string. The species name.

DBH

Numeric. The tree's diameter at breast height (DBH, cm).

heightIncluded

Logical. Whether the biomass is calculated based on DBH and height. If TURE, height must be provided. Default TRUE

height

Numeric. The tree's height (m).

paperSource

Character. Determine the sources of equations. Currently, this functions has two options, i.e., "Lambert2005" and "Ung2008". Default Lambert2005

Value

Biomass (kg) and missedSpecies list that was not calculated.

Author(s)

Yong Luo

Examples

## Not run: 
 DBH <- seq(1, 100, 5)
 species <- c(rep("jack pine", 10), rep("black spruce", 10))
 species[1] <- "wrongSpecies"
 height <- seq(20, 40, length = 20)
 # without height information and taking the eqations from Lambert 2005
 biomass1 <- biomassCalculator(species = species, DBH = DBH, heightIncluded = FALSE)
 # with height information and taking the eqations from Lambert 2005
 biomass2 <- biomassCalculator(species = species, DBH = DBH,
                                heightIncluded = TRUE, height = height)

## End(Not run)

bcgov/FAIBBase documentation built on June 19, 2024, 11:57 p.m.