update_biomass: Replace selected biomass values of a rSOILWAT2::swProd object

View source: R/sw_Vegetation.R

update_biomassR Documentation

Replace selected biomass values of a rSOILWAT2::swProd object

Description

Replace selected biomass values of a rSOILWAT2::swProd object

Usage

update_biomass(
  fg = c("Grass", "Shrub", "Tree", "Forb"),
  use,
  prod_input,
  prod_default
)

Arguments

fg

A character string. One of the functional groups represented by rSOILWAT2

use

A named logical vector. The names must represent the column names of a MonthlyVeg element of an swProd object

prod_input

A data frame. The values that replace the selected biomass values.

prod_default

A swProd object that contains the MonthlyVeg element with biomass values to be updated.

Value

The requested MonthlyVeg element from prod_default with updated values.


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.