logAttributesLongForm: Transpose wide form table to long form table-VRI specific

Description Usage Arguments Value Author(s)

Description

This function transposes wide form outputs to long form outputs. This function is not included in the VRI compiler anymore.

Usage

1
2
3
4
5
6
7
8
9
logAttributesLongForm(treeData, maximumLogNO)

## S4 method for signature 'data.table,numeric'
logAttributesLongForm(treeData,
  maximumLogNO)

## S4 method for signature 'data.table,missing'
logAttributesLongForm(treeData,
  maximumLogNO)

Arguments

treeData

data.table, an output from logValueCalculator function, i.e., tree_ms6. This table currently has top diameter (LOG_D_X), length (LOG_L_X), volume (LOG_V_X), merchantable volume (LOG_VM_X), grade (LOG_G_X), sound percentage (LOG_S_X) and value (LOG_c_x). X is log number from 1 to maximum log number.

maximumLogNO

numeric, determine the maximum number of logs. In VRI compiler, it is 9. Therefore, 9 is default.

Value

A data table and a log file

Author(s)

Yong Luo


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