SpWd_Area_calc {TDPanalysis}R Documentation

Sapwood area calculation

Description

Calculate sapwood area based on diameter, heartwood diameter and sapwood fraction

Usage

SpWd_Area_calc(diam, SpWd_frac = 1, HtWd_diam = 0)

Arguments

diam

Vector with diameter.

SpWd_frac

Numerical (from 0 to 1). Indicate the fraction of the diameter which is sapwood

HtWd_diam

Vector with diameter of the heartwood.

Details

If SpWD_frac and HtWd_diam are both entered, the function will return an error. Units of "diam" and "HtWd_diam" should be the same.

Value

Return a numerical vector containing the sapwood area

Examples

diam = c(12,14,16,13,15)
SpWd_Area_calc(diam=diam, SpWd_frac=0.2)

[Package TDPanalysis version 1.0 Index]