PriceVolumeCalc: PriceVolumeCalc

View source: R/PriceVolumeCalc.R

PriceVolumeCalcR Documentation

PriceVolumeCalc

Description

Calculates log price volume, i.e., the volume which is used for price calculation

Usage

PriceVolumeCalc(
  VolumeDiameterAdjustment,
  VolumeDiameterCategory,
  VolumeLengthCategory,
  diameterPosition,
  DiameterValue,
  StartPos,
  StopPos,
  DiameterTopPosition,
  DiameterUnderBark = T,
  SpeciesGroupKey = NA,
  SpeciesGroupDefinition = NA,
  DBH = NA,
  LogLength = NA,
  LengthClasses = NA,
  ProductKey = NA
)

Arguments

VolumeDiameterAdjustment

Volume diameter adjustment according to stanford2010 (see getProductData()).

VolumeDiameterCategory

Volume calculation method according to stanford2010 (see getProductData()).

VolumeLengthCategory

Volume length category according to stanford2010 (see getProductData()).

diameterPosition

numeric vector of diameter positions (cm) of a stem profile; 0,10,...,end

DiameterValue

numeric vector of corresponding diameters (mm)

StartPos

Starting position of log along the stem

StopPos

Ending position of log

DiameterTopPosition

Position from top end of log where top diameter is measured. Cm

DiameterUnderBark

Logical TRUE/FALSE

SpeciesGroupKey

Species ID

SpeciesGroupDefinition

List of species group information, with speciesgroupkey as the name of the elements(see getSpeciesGroupDefinition)

DBH

Optional, in mm (see BarkFunction)

LogLength

Optional, in cm (see BarkFunction)

LengthClasses

List of length classes for the assortments (see getLengthClasses)

ProductKey

Assortment key (see getProductData())

Value

Log volume in m3

Author(s)

Lennart Noordermeer lennart.noordermeer@nmbu.no

See Also

Buck


lennartnoordermeer/optBuck documentation built on Jan. 27, 2025, 4:51 p.m.