logMatrixAdjustment: Adjust log length matrix

Description Usage Arguments Value Author(s)

Description

This function is to adjust log length matrix based on tree height, minimum log length and default log length. This function is equivalent to vol_tree_log_validation macro in original sas compiler.

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
32
33
34
35
36
37
logMatrixAdjustment(logLengthMatrix, height, stumpHeight, logMinLength,
  logDefaultLength)


  ## S4 method for signature 'data.table,numeric,numeric,numeric,numeric'
logMatrixAdjustment(logLengthMatrix,
  height, stumpHeight, logMinLength, logDefaultLength)


  ## S4 method for signature 'data.table,numeric,missing,numeric,numeric'
logMatrixAdjustment(logLengthMatrix,
  height, logMinLength, logDefaultLength)


  ## S4 method for signature 'data.table,numeric,numeric,missing,numeric'
logMatrixAdjustment(logLengthMatrix,
  height, stumpHeight, logDefaultLength)


  ## S4 method for signature 'data.table,numeric,numeric,numeric,missing'
logMatrixAdjustment(logLengthMatrix,
  height, stumpHeight, logMinLength)


  ## S4 method for signature 'data.table,numeric,missing,missing,numeric'
logMatrixAdjustment(logLengthMatrix,
  height, logDefaultLength)


  ## S4 method for signature 'data.table,numeric,missing,numeric,missing'
logMatrixAdjustment(logLengthMatrix,
  height, logMinLength)


  ## S4 method for signature 'data.table,numeric,missing,missing,missing'
logMatrixAdjustment(logLengthMatrix,
  height)

Arguments

logLengthMatrix

data.table, A matrix of log length for each tree, NA is accepted in the matrix. The order of log from bottom to top must be presented from left to right in the table

height

numeric, Tree height

stumpHeight,

numeric, Stump height. If missing, 0.3 m is used.

logMinLength

numeric, Minimum log length. If missing, 3 m is used.

logDefaultLength

numeric, Default log length. If missing, 5 m is used.

Value

A data.table that contains the matrix of adjusted log length

Author(s)

Yong Luo


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