valueCalculator: Calcualte tree value-VRI specific

Description Usage Arguments Value Author(s)

Description

This function calculates tree value for each tree based on ground called grade. From the second column to the last column, the grossVolMatrix table should have same dimensions (i.e., number of rows and columns) of callGradeMatrix and grossMerchVolMatrix if they are provided. Furthermore, be aware of the correspondingness among the matrix. In the function, two lookup table are hardcoded (i.e., spv_spc and sp_cost). This function is part of the log_valu_2017.sas.

Usage

1
2
3
4
5
6
7
valueCalculator(species, grossVolMatrix, grossMerchVolMatrix,
  callGradeMatrix)


  ## S4 method for signature 'character,data.table,data.table,data.table'
valueCalculator(species,
  grossVolMatrix, grossMerchVolMatrix, callGradeMatrix)

Arguments

species

character, Species codes in BC inventory system.

grossVolMatrix

data.table, Calculated gross volume for each log. The first column of this table is the volume for the stump. If missing, the function calculates the total net merchantable volume.

grossMerchVolMatrix

data.table, Calculated gross merchantable volume for each log. If missing, all the merchantable volume is assigned as 0.

callGradeMatrix

data.table, Ground call grading table.

Value

Data table that contains net value (VAL_NET) and net merchantable value (VAL_MER).

Author(s)

Yong Luo


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