biomassCalculation: this function is to calculate aboveground biomass for boreal...

Description Usage Arguments Value Note Author(s) See Also Examples

Description

this function is to calculate aboveground biomass for boreal species based on DBH or DBH and Height

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
biomassCalculation(species, DBH, heightIncluded, height, paperSource)


  ## S4 method for signature 'character,numeric,logical,numeric,character'
biomassCalculation(species,
  DBH, heightIncluded, height, paperSource)


  ## S4 method for signature 'character,numeric,missing,numeric,character'
biomassCalculation(species,
  DBH, height, paperSource)


  ## S4 method for signature 'character,numeric,logical,numeric,missing'
biomassCalculation(species,
  DBH, heightIncluded, height)


  ## S4 method for signature 'character,numeric,missing,numeric,missing'
biomassCalculation(species,
  DBH, height)


  ## S4 method for signature 'character,numeric,missing,missing,character'
biomassCalculation(species,
  DBH, paperSource)


  ## S4 method for signature 'character,numeric,missing,missing,missing'
biomassCalculation(species,
  DBH)

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 FALSE

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.

Note

no note

Author(s)

Yong Luo

See Also

no

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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 <- biomassCalculation(species = species, DBH = DBH)
 # with height information and taking the eqations from Lambert 2005
 biomass2 <- biomassCalculation(species = species, DBH = DBH,
                                heightIncluded = TRUE, height = height)

## End(Not run)

bcgov/BCForestGroundSample documentation built on May 25, 2019, 3:21 p.m.