runMultiSpeciesBiomass: Run Multiple Species Biomass Functions

View source: R/runMultiSpeciesBiomass.R

runMultiSpeciesBiomassR Documentation

Run Multiple Species Biomass Functions

Description

This function takes elevation and biological inputs, runs parabolic predictBiomass function for multiple species, and returns a single above ground biomass value and set of biological parameters based on a competition function.

Usage

runMultiSpeciesBiomass(
  z,
  bMax,
  zVegMax,
  zVegMin,
  zVegPeak = NA,
  rootToShoot,
  rootTurnover,
  abovegroundTurnover = NA,
  rootDepthMax,
  speciesCode = NA,
  competition.fn = NA
)

Arguments

z

a numeric, elevation

bMax

a numeric, or vector of numerics, maximum biomass

zVegMax

a numeric, or vector of numerics, upper elevation of biomass limit

zVegMin

a numeric, or vector of numerics, lower elevation of biomass limit

zVegPeak

(optional) a numeric, or vector of numerics, elevation of peak biomass

rootToShoot

a numeric, or vector of numerics, root to shoot ratio

rootTurnover

a numeric, or vector of numerics, belowground biomass annual turnover rate

abovegroundTurnover

(optional) a numeric, or vector of numerics, aboveground biomass annual turnover rate

rootDepthMax

a numeric, or vector of numerics, maximum (95%) rooting depth

speciesCode

(optional) a character, or vector of characters, species names or codes associated with biological inputs

competition.fn

(optional) a function that takes at least a dataframe bio_table as an input, models competition between multiple species, and outputs an one row data frame aggregating biomass and biological inputs

Value

a one dataframe with above ground biomass, and biological parameters representing the dominant specie(s) at the elevation


tilbud/rCTM documentation built on March 30, 2024, 10:06 a.m.